diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-25 19:08:05 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-25 19:08:05 (GMT) |
commit | 5eda3799074f858f7790975b7a294374720177f7 (patch) | |
tree | e39a1cf883d7098956fbf0e49041ba04f79c7816 /Tests/LoadCommand/CMakeLists.txt | |
parent | ef07a8565ee0bf80918d4178058cd2ded8722db8 (diff) | |
download | CMake-5eda3799074f858f7790975b7a294374720177f7.zip CMake-5eda3799074f858f7790975b7a294374720177f7.tar.gz CMake-5eda3799074f858f7790975b7a294374720177f7.tar.bz2 |
ENH: clean up loaded command test so you can tell what really failed
Diffstat (limited to 'Tests/LoadCommand/CMakeLists.txt')
-rw-r--r-- | Tests/LoadCommand/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/LoadCommand/CMakeLists.txt b/Tests/LoadCommand/CMakeLists.txt index 1d261be..f69d292 100644 --- a/Tests/LoadCommand/CMakeLists.txt +++ b/Tests/LoadCommand/CMakeLists.txt @@ -5,6 +5,7 @@ SET (TEST_COMMAND_TEST1 1) INCLUDE (${CMAKE_ROOT}/Modules/CheckTypeSize.cmake) CHECK_TYPE_SIZE(char SIZEOF_CHAR) +CHECK_TYPE_SIZE(short SIZEOF_SHORT) INCLUDE (CheckFunctionExists) CHECK_FUNCTION_EXISTS(printf HAVE_PRINTF) @@ -55,8 +56,9 @@ ELSE (COMPILE_OK) MESSAGE("failed to compile CMAKE_LOADED_COMMANDS") ENDIF (COMPILE_OK) -IF (TEST_DEF) +# TEST_DEF is set by the loaded command cmTestCommand.c +IF (TEST_DEF AND SOME_CACHE_VARIABLE) ADD_DEFINITIONS(-DCMAKE_IS_FUN) -ENDIF (TEST_DEF) +ENDIF (TEST_DEF AND SOME_CACHE_VARIABLE) ADD_EXECUTABLE (LoadedCommand LoadedCommand.cxx) |