diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-14 19:02:27 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-14 19:02:27 (GMT) |
commit | 9bc53f64434e807b5fdb9103995f82eddd16d6d7 (patch) | |
tree | 9895540ec0442e0502e69a3b919ed3666abedf9f /Source/kwsys/testCommandLineArguments.cxx | |
parent | 71395c78cee2abe5cdfb7b27bb3a4f2610c87653 (diff) | |
download | CMake-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.cxx | 2 |
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; } |