[CMake] Change in variable resolution?
wedekind
wedekind at caesar.de
Fri Nov 17 07:57:06 EST 2006
Hello all,
I have been using CMake 2.4.3 until today. Now I wanted to switch to CMake
2.4.4 or the CVS-version. After playing around with the CVS-version, I have
observed a change in the resolution of CMake variables. I have been using
two methods of denoting CMake variables:
1) @CMAKE_VARIABLE@
or
2) ${CMAKE_VARIABLE}
The first method will not get resolved with the CVS-version as it has in
2.4.3! E.g.:
@SOURCEDIR@/bla (with @SOURCEDIR@=/sourcedir)
Will be resolved to
/sourcedir/src/@SOURCEDIR@/bla
So @SOURCDIR@ has been expanded correctly, but /src/@SOURCEDIR@ has been
wrongly added.
Furthermore
MESSAGE(@SOURCEDIR@)
Only displays
@SOURCEDIR@
When being processed by CMake...
Why is this?
Best regards
Marco
More information about the CMake
mailing list