diff options
Diffstat (limited to 'Tests/LoadCommandOneConfig/CMakeLists.txt')
-rw-r--r-- | Tests/LoadCommandOneConfig/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/LoadCommandOneConfig/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeLists.txt index 6c1eb45..411d439 100644 --- a/Tests/LoadCommandOneConfig/CMakeLists.txt +++ b/Tests/LoadCommandOneConfig/CMakeLists.txt @@ -58,8 +58,7 @@ ELSE (COMPILE_OK) ENDIF (COMPILE_OK) # TEST_DEF is set by the loaded command cmTestCommand.c -IF (TEST_DEF AND SOME_CACHE_VARIABLE) +IF (TEST_DEF AND SOME_CACHE_VARIABLE AND TEST_EXEC) ADD_DEFINITIONS(-DCMAKE_IS_FUN) -ENDIF (TEST_DEF AND SOME_CACHE_VARIABLE) +ENDIF (TEST_DEF AND SOME_CACHE_VARIABLE AND TEST_EXEC) -ADD_EXECUTABLE (LoadedCommand LoadedCommand.cxx) |