[CMake] Problem with STREQUAL
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Thu Aug 3 03:59:17 EDT 2006
Hi,
One more small problem:
if(NOT WIN32)
MESSAGE(STATUS "if(NOT WIN32)")
set(tmp "test")
if(${tmp} STREQUAL "test")
MESSAGE(STATUS "match")
else(${tmp} STREQUAL "test")
MESSAGE(STATUS "no match")
endif(${tmp} STREQUAL "test")
else(NOT WIN32)
MESSAGE(STATUS "else(NOT WIN32)")
endif(NOT WIN32)
This works fine on non win32, but I get an error:
CMake Error: Error in cmake code at
C:/tmp/sim-trunk/CMakeLists.txt:6:
IF had incorrect arguments: ${tmp} STREQUAL "test" (Unknown arguments specified).
Current CMake stack: C:/tmp/sim-trunk/CMakeLists.txt
-- no match
When I do a SET(tmp "") before the first if, all works fine.
Don't know if this is a real bug...
Christian
--
Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
More information about the CMake
mailing list