[CMake] Checking for empty string

Eric Noulard eric.noulard at gmail.com
Tue Oct 25 05:17:55 EDT 2011


2011/10/25 Daniel Dekkers <d.dekkers at cthrough.nl>:
> 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


More information about the CMake mailing list