diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-29 19:20:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-29 19:20:32 (GMT) |
commit | 7d76de4403480dc607261c5a1067a24c667faeeb (patch) | |
tree | 4e5d4464a62b46cb6f0b151f481634259aa4b895 /Tests/ComplexOneConfig/Executable | |
parent | 0223ba91f3aad2014df152612a805d3feb676ddb (diff) | |
download | CMake-7d76de4403480dc607261c5a1067a24c667faeeb.zip CMake-7d76de4403480dc607261c5a1067a24c667faeeb.tar.gz CMake-7d76de4403480dc607261c5a1067a24c667faeeb.tar.bz2 |
make sure ; expansion is done in all commands
Diffstat (limited to 'Tests/ComplexOneConfig/Executable')
-rw-r--r-- | Tests/ComplexOneConfig/Executable/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Executable/complex.cxx | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index 801c777..9acd780 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Executable/CMakeLists.txt @@ -1,8 +1,8 @@ # # Create exe. # +SET_SOURCE_FILES_PROPERTIES(complex COMPILE_FLAGS "-DSET_SOURCE_FILES_PROPERTIES") ADD_EXECUTABLE(complex complex) - SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared) TARGET_LINK_LIBRARIES(complex ${COMPLEX_LIBS}) diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index f1fe92d..54f45e0 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -95,6 +95,11 @@ void TestDir(const char* filename) int main() { +#ifdef SET_SOURCE_FILES_PROPERTIES + cmPassed("SET_SOURCE_FILES_PROPERTIES set FLAGS passed on an ADD_EXECUTABLE source"); +#else + cmFailed("SET_SOURCE_FILES_PROPERTIES set FLAGS passed on an ADD_EXECUTABLE source"); +#endif if(sharedFunction() != 1) { cmFailed("Call to sharedFunction from shared library failed."); @@ -121,6 +126,14 @@ int main() { cmPassed("Call to file2 function returned 1."); } + if(PropertyTest() != 1) + { + cmFailed("Call to PropertyTest function from library failed."); + } + else + { + cmPassed("Call to PropertyTest function returned 1."); + } // ---------------------------------------------------------------------- // Test ADD_DEFINITIONS |