diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-20 07:21:25 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-20 07:21:25 (GMT) |
commit | 7bda70b8364ff51de82bba4a8757860815a6c0a0 (patch) | |
tree | 378574eaf8d1cb3b8bef04656e9bb6fccc7e802c /Tests/ComplexRelativePaths | |
parent | 6f3570656caf463addeb9edafcecba33f0efcbb9 (diff) | |
download | CMake-7bda70b8364ff51de82bba4a8757860815a6c0a0.zip CMake-7bda70b8364ff51de82bba4a8757860815a6c0a0.tar.gz CMake-7bda70b8364ff51de82bba4a8757860815a6c0a0.tar.bz2 |
More IF coverage
Diffstat (limited to 'Tests/ComplexRelativePaths')
-rw-r--r-- | Tests/ComplexRelativePaths/VarTests.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/ComplexRelativePaths/VarTests.cmake b/Tests/ComplexRelativePaths/VarTests.cmake index 800a66e..5c444f5 100644 --- a/Tests/ComplexRelativePaths/VarTests.cmake +++ b/Tests/ComplexRelativePaths/VarTests.cmake @@ -83,6 +83,18 @@ ELSE(COMMAND "ROQUEFORT") ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND2) ENDIF(COMMAND "ROQUEFORT") +IF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake) + ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS) +ELSE(EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake) + ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS) +ENDIF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake) + +IF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt) + ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS2) +ELSE(EXISTS ${Complex_SOURCE_DIR}/roquefort.txt) + ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS2) +ENDIF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt) + # # Test FOREACH # |