[Cmake] "IF EXISTS" with variable?

Bernhard Zach bzach at hyperwave . com
Wed, 22 Oct 2003 12:21:11 +0200


Hi all,
I'm a newby with CMake but I hope you I can get your help.

I want to include a File which can be an two possible places.
It works fine, if I hardcode the filename, but I have to use a variable:

"IF (EXISTS ${UtilsFile})"
The result is:
"IF An IF command had incorrect arguments: EXISTS ${UtilsFile}"

Thank you,
Bernhard