summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexRelativePaths/VarTests.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-20 05:12:27 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-20 05:12:27 (GMT)
commit049a4820a23ba3f939246f96458a281ddc8f29a2 (patch)
treed963cc29b925ef5c83b7f914f36a078fc3112147 /Tests/ComplexRelativePaths/VarTests.cmake
parentdf5131adc294301b08783a6bc9738afd2049d197 (diff)
downloadCMake-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.cmake8
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)