summaryrefslogtreecommitdiffstats
path: root/Tests/Complex
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-04-11 16:49:03 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-04-14 16:17:49 (GMT)
commitf21ac16edd0d2fbe78daf17bf5f964e4cfbd694b (patch)
tree421af0acc69aaf7b0fd17b751867e70095c7719c /Tests/Complex
parent7eacbaed4db3c3fe5d6c0e3a31e239530a7468f1 (diff)
downloadCMake-f21ac16edd0d2fbe78daf17bf5f964e4cfbd694b.zip
CMake-f21ac16edd0d2fbe78daf17bf5f964e4cfbd694b.tar.gz
CMake-f21ac16edd0d2fbe78daf17bf5f964e4cfbd694b.tar.bz2
Replace MATCHES test on numbers with EQUAL test
The MATCHES tests were actually wrong, as "a4b" and "42" would also cause a match when it should not.
Diffstat (limited to 'Tests/Complex')
-rw-r--r--Tests/Complex/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt
index 001ae56..d250f53 100644
--- a/Tests/Complex/CMakeLists.txt
+++ b/Tests/Complex/CMakeLists.txt
@@ -36,7 +36,7 @@ ASSERT(Complex_BINARY_DIR "The PROJECT command is broken")
#
macro(TEST_ARGC value1 value2)
add_definitions(${value1} ${value2})
- if (${ARGC} MATCHES 4)
+ if (${ARGC} EQUAL 4)
add_definitions(${ARGV2} ${ARGV3})
endif ()
endmacro()