2011/10/25 Daniel Dekkers <[email protected]>:
> 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 ""
Did you try
IF( "${test}" STREQUAL "" ) ?
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--
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