summaryrefslogtreecommitdiffstats
path: root/Tests/LoadCommand/CMakeLists.txt
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-17 13:16:04 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-17 13:16:04 (GMT)
commit40fd3b83dc19c6b51afb73611dcc5be1422e9e26 (patch)
treec4db4f47670f34723c9a2293eec3cb9be3680549 /Tests/LoadCommand/CMakeLists.txt
parente4690b6df26ec10e826f0425b647e01362e6b5e9 (diff)
downloadCMake-40fd3b83dc19c6b51afb73611dcc5be1422e9e26.zip
CMake-40fd3b83dc19c6b51afb73611dcc5be1422e9e26.tar.gz
CMake-40fd3b83dc19c6b51afb73611dcc5be1422e9e26.tar.bz2
some cleanup
Diffstat (limited to 'Tests/LoadCommand/CMakeLists.txt')
-rw-r--r--Tests/LoadCommand/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/Tests/LoadCommand/CMakeLists.txt b/Tests/LoadCommand/CMakeLists.txt
index e6e3ca2..925eab0 100644
--- a/Tests/LoadCommand/CMakeLists.txt
+++ b/Tests/LoadCommand/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)