diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-20 05:12:27 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-20 05:12:27 (GMT) |
commit | 049a4820a23ba3f939246f96458a281ddc8f29a2 (patch) | |
tree | d963cc29b925ef5c83b7f914f36a078fc3112147 /Tests/ComplexRelativePaths/VarTests.cmake | |
parent | df5131adc294301b08783a6bc9738afd2049d197 (diff) | |
download | CMake-049a4820a23ba3f939246f96458a281ddc8f29a2.zip CMake-049a4820a23ba3f939246f96458a281ddc8f29a2.tar.gz CMake-049a4820a23ba3f939246f96458a281ddc8f29a2.tar.bz2 |
More tests + coverage
Diffstat (limited to 'Tests/ComplexRelativePaths/VarTests.cmake')
-rw-r--r-- | Tests/ComplexRelativePaths/VarTests.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/ComplexRelativePaths/VarTests.cmake b/Tests/ComplexRelativePaths/VarTests.cmake index 1b6c337..e4fb156 100644 --- a/Tests/ComplexRelativePaths/VarTests.cmake +++ b/Tests/ComplexRelativePaths/VarTests.cmake @@ -40,6 +40,12 @@ ELSE(STRING_VAR MATCHES "^CMake") ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_MATCHES) ENDIF(STRING_VAR MATCHES "^CMake") +IF(COMMAND "IF") + ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND) +ELSE(COMMAND "IF") + ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_COMMAND) +ENDIF(COMMAND "IF") + # # Test FOREACH # @@ -58,5 +64,5 @@ GET_FILENAME_COMPONENT(FILENAME_VAR_NAME ${FILENAME_VAR} NAME) GET_FILENAME_COMPONENT(FILENAME_VAR_EXT ${FILENAME_VAR} EXT) GET_FILENAME_COMPONENT(FILENAME_VAR_NAME_WE ${FILENAME_VAR} NAME_WE CACHE) -FIND_PATH(PATH_VAR "VarTests.cmake" ${Complex_SOURCE_DIR}) +FIND_PATH(PATH_VAR "cmTestConfigure.h.in" ${Complex_SOURCE_DIR}) GET_FILENAME_COMPONENT(PATH_VAR_NAME ${PATH_VAR} NAME) |