diff options
-rw-r--r-- | Tests/Complex/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/Complex/Executable/complex.cxx | 12 | ||||
-rw-r--r-- | Tests/Complex/cmTestConfigure.h.in | 2 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Executable/complex.cxx | 12 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/cmTestConfigure.h.in | 2 | ||||
-rw-r--r-- | Tests/ComplexRelativePaths/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/ComplexRelativePaths/Executable/complex.cxx | 12 | ||||
-rw-r--r-- | Tests/ComplexRelativePaths/cmTestConfigure.h.in | 2 |
9 files changed, 51 insertions, 3 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index 609a43e..5cead76 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/CMakeLists.txt @@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS) ADD_DEFINITIONS(-DCMAKE_IS_FUN) +SET(TEST_SEP "a b c") +SEPARATE_ARGUMENTS(TEST_SEP) + + # # Include vars from a file and from a cache # diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index 89c3436..fb268c4 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -667,7 +667,17 @@ int main() { cmFailed("REMOVE is not working"); } - + + // ---------------------------------------------------------------------- + // Test SEPARATE_ARGUMENTS + if(strcmp("a;b;c", TEST_SEP) == 0) + { + cmPassed("SEPARATE_ARGUMENTS is working"); + } + else + { + cmFailed("SEPARATE_ARGUMENTS is not working"); + } // ---------------------------------------------------------------------- // Summary diff --git a/Tests/Complex/cmTestConfigure.h.in b/Tests/Complex/cmTestConfigure.h.in index ed111fb..873123a 100644 --- a/Tests/Complex/cmTestConfigure.h.in +++ b/Tests/Complex/cmTestConfigure.h.in @@ -49,6 +49,8 @@ #cmakedefine FILE_HAS_WRAP_EXCLUDE #define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}" +#define TEST_SEP "${TEST_SEP}" + // Test registry read #if defined(_WIN32) && !defined(__CYGWIN__) diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index 609a43e..5cead76 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS) ADD_DEFINITIONS(-DCMAKE_IS_FUN) +SET(TEST_SEP "a b c") +SEPARATE_ARGUMENTS(TEST_SEP) + + # # Include vars from a file and from a cache # diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 89c3436..fb268c4 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -667,7 +667,17 @@ int main() { cmFailed("REMOVE is not working"); } - + + // ---------------------------------------------------------------------- + // Test SEPARATE_ARGUMENTS + if(strcmp("a;b;c", TEST_SEP) == 0) + { + cmPassed("SEPARATE_ARGUMENTS is working"); + } + else + { + cmFailed("SEPARATE_ARGUMENTS is not working"); + } // ---------------------------------------------------------------------- // Summary diff --git a/Tests/ComplexOneConfig/cmTestConfigure.h.in b/Tests/ComplexOneConfig/cmTestConfigure.h.in index ed111fb..873123a 100644 --- a/Tests/ComplexOneConfig/cmTestConfigure.h.in +++ b/Tests/ComplexOneConfig/cmTestConfigure.h.in @@ -49,6 +49,8 @@ #cmakedefine FILE_HAS_WRAP_EXCLUDE #define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}" +#define TEST_SEP "${TEST_SEP}" + // Test registry read #if defined(_WIN32) && !defined(__CYGWIN__) diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt index 609a43e..5cead76 100644 --- a/Tests/ComplexRelativePaths/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/CMakeLists.txt @@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS) ADD_DEFINITIONS(-DCMAKE_IS_FUN) +SET(TEST_SEP "a b c") +SEPARATE_ARGUMENTS(TEST_SEP) + + # # Include vars from a file and from a cache # diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 89c3436..fb268c4 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -667,7 +667,17 @@ int main() { cmFailed("REMOVE is not working"); } - + + // ---------------------------------------------------------------------- + // Test SEPARATE_ARGUMENTS + if(strcmp("a;b;c", TEST_SEP) == 0) + { + cmPassed("SEPARATE_ARGUMENTS is working"); + } + else + { + cmFailed("SEPARATE_ARGUMENTS is not working"); + } // ---------------------------------------------------------------------- // Summary diff --git a/Tests/ComplexRelativePaths/cmTestConfigure.h.in b/Tests/ComplexRelativePaths/cmTestConfigure.h.in index ed111fb..873123a 100644 --- a/Tests/ComplexRelativePaths/cmTestConfigure.h.in +++ b/Tests/ComplexRelativePaths/cmTestConfigure.h.in @@ -49,6 +49,8 @@ #cmakedefine FILE_HAS_WRAP_EXCLUDE #define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}" +#define TEST_SEP "${TEST_SEP}" + // Test registry read #if defined(_WIN32) && !defined(__CYGWIN__) |