diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-07-17 14:48:39 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-07-17 14:48:39 (GMT) |
commit | fcc410de44e59fa4f6145292dc1f13a4498bd8b1 (patch) | |
tree | 3a26d56bed8920250e9a23e87444d7bf5e3d62d3 /Tests/ComplexRelativePaths | |
parent | 3d3caacf9ec9f99cebcfaeb5ab105daa1046f945 (diff) | |
download | CMake-fcc410de44e59fa4f6145292dc1f13a4498bd8b1.zip CMake-fcc410de44e59fa4f6145292dc1f13a4498bd8b1.tar.gz CMake-fcc410de44e59fa4f6145292dc1f13a4498bd8b1.tar.bz2 |
fixed if statements inside a foreach
Diffstat (limited to 'Tests/ComplexRelativePaths')
-rw-r--r-- | Tests/ComplexRelativePaths/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt index 2d6de20..068b47e 100644 --- a/Tests/ComplexRelativePaths/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/CMakeLists.txt @@ -164,13 +164,13 @@ REMOVE(REMOVE_STRING ${removeVar1} f) # Test an IF inside a FOREACH. # FOREACH(x "a") - IF(1) + IF(${x} MATCHES "a") # Should always execute. SET(IF_INSIDE_FOREACH_THEN_EXECUTED 1) - ELSE(1) + ELSE(${x} MATCHES "a") # Should never execute. SET(IF_INSIDE_FOREACH_ELSE_EXECUTED 1) - ENDIF(1) + ENDIF(${x} MATCHES "a") ENDFOREACH(x) |