summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexRelativePaths
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-07-17 14:48:39 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-07-17 14:48:39 (GMT)
commitfcc410de44e59fa4f6145292dc1f13a4498bd8b1 (patch)
tree3a26d56bed8920250e9a23e87444d7bf5e3d62d3 /Tests/ComplexRelativePaths
parent3d3caacf9ec9f99cebcfaeb5ab105daa1046f945 (diff)
downloadCMake-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.txt6
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)