[CMake] if defined and boolean value

Alexander Neundorf a.neundorf-work at gmx.net
Sun Jul 14 05:59:19 EDT 2013


On Saturday 13 July 2013, Victor Aurélio Santos wrote:
> Hi,
> 
> I'm trying to evaluate a expression "if variable X is defined and Y is ON":
> tried this:
> if (defined ${GETTEXT_LIB-NOTFOUND} and ${ENABLE_NLS})

You probably used "DEFINED", no "defined", right ?

Alex


More information about the CMake mailing list