mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user