[CMake] Checking for empty string
Daniel Dekkers
d.dekkers at cthrough.nl
Tue Oct 25 07:46:50 EDT 2011
Great, thanks.
On Oct 25, 2011, at 11:17 AM, Eric Noulard wrote:
> 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