summaryrefslogtreecommitdiffstats
path: root/Tests/LoadCommandOneConfig/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LoadCommandOneConfig/CMakeLists.txt')
-rw-r--r--Tests/LoadCommandOneConfig/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/Tests/LoadCommandOneConfig/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeLists.txt
index e6e3ca2..925eab0 100644
--- a/Tests/LoadCommandOneConfig/CMakeLists.txt
+++ b/Tests/LoadCommandOneConfig/CMakeLists.txt
@@ -1,19 +1,19 @@
-PROJECT(LOADED_COMMANDS)
+PROJECT(LoadedCommand)
# set a definition
SET (TEST_COMMAND_TEST1 1)
# try to compile the command
TRY_COMPILE(COMPILE_OK
- ${LOADED_COMMANDS_SOURCE_DIR}/CMakeCommands
- ${LOADED_COMMANDS_BINARY_DIR}/CMakeCommands
- CMAKE_LOADED_COMMANDS)
+ ${LoadedCommand_BINARY_DIR}/CMakeCommands
+ ${LoadedCommand_SOURCE_DIR}/CMakeCommands
+ CMAKE_LOADED_COMMANDS cmCMAKE_TEST_COMMAND)
# if the compile was OK, try loading the command
IF (COMPILE_OK)
LOAD_COMMAND(CMAKE_TEST_COMMAND
- ${LOADED_COMMANDS_BINARY_DIR}/CMakeCommands
- ${LOADED_COMMANDS_BINARY_DIR}/CMakeCommands/Debug
+ ${LoadedCommand_BINARY_DIR}/CMakeCommands
+ ${LoadedCommand_BINARY_DIR}/CMakeCommands/Debug
)
# if the command loaded, execute the command
IF (COMMAND CMAKE_TEST_COMMAND)
@@ -24,7 +24,7 @@ ELSE (COMPILE_OK)
ENDIF (COMPILE_OK)
IF (TEST_DEF)
- ADD_DEFINITIONS(-DCMAKE_IS_FUN)
+ ADD_DEFINITIONS(-DCMAKE_IS_FUN)
ENDIF (TEST_DEF)
ADD_EXECUTABLE (LoadedCommand LoadedCommand.cxx)