summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testCommandLineArguments.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-14 19:02:27 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-14 19:02:27 (GMT)
commit9bc53f64434e807b5fdb9103995f82eddd16d6d7 (patch)
tree9895540ec0442e0502e69a3b919ed3666abedf9f /Source/kwsys/testCommandLineArguments.cxx
parent71395c78cee2abe5cdfb7b27bb3a4f2610c87653 (diff)
downloadCMake-9bc53f64434e807b5fdb9103995f82eddd16d6d7.zip
CMake-9bc53f64434e807b5fdb9103995f82eddd16d6d7.tar.gz
CMake-9bc53f64434e807b5fdb9103995f82eddd16d6d7.tar.bz2
ENH: Add a way to get unused arguments and add a test
Diffstat (limited to 'Source/kwsys/testCommandLineArguments.cxx')
-rw-r--r--Source/kwsys/testCommandLineArguments.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/testCommandLineArguments.cxx b/Source/kwsys/testCommandLineArguments.cxx
index 35afa4e..72707f9 100644
--- a/Source/kwsys/testCommandLineArguments.cxx
+++ b/Source/kwsys/testCommandLineArguments.cxx
@@ -50,6 +50,8 @@ int unknown_argument(const char* argument, void* call_data)
bool CompareTwoItemsOnList(bool i1, bool i2) { return i1 == i2; }
bool CompareTwoItemsOnList(int i1, int i2) { return i1 == i2; }
bool CompareTwoItemsOnList(double i1, double i2) { return i1 == i2; }
+bool CompareTwoItemsOnList(const char* i1,
+ const char* i2) { return strcmp(i1, i2) == 0; }
bool CompareTwoItemsOnList(const kwsys_stl::string& i1,
const kwsys_stl::string& i2) { return i1 == i2; }