[CMake] Weird if nesting problem

Brandon J. Van Every bvanevery at gmail.com
Tue Dec 5 23:05:54 EST 2006


Alan W. Irwin wrote:
> On 2006-12-05 14:44-0700 James Bigler wrote:
>
>> CMake barfs on the first IF(EXISTS ${PARSER_EXECUTABLE}), probably 
>> because it is trying to evaluate if this expression is part of the 
>> ENDIF or something. It does this with 2.2.3, 2.4.3, 2.4.5 on Linux.
>
> Try IF(EXISTS ${PARSER_EXECUTABLE}) ==> IF(EXISTS PARSER_EXECUTABLE)

If that actually works, then the documentation is bugged.  
PARSER_EXECUTABLE is a variable name, not a file or directory name.


Cheers,
Brandon Van Every



More information about the CMake mailing list