> hi there,
>
> how do I test if a string is empty ("") or not ?
> IF( ${test} STREQUAL "" )
> gives the wrong number of arguments if ${test} is ""

if ("${test}" STREQUAL "")
if (NOT test)

What does not work (in 2.8.5) but should work according to the documentation:

if (test STREQUAL "")

Eike
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to