AW: AW: [CMake] Change in variable resolution?

wedekind wedekind at caesar.de
Mon Nov 20 04:25:03 EST 2006


Hello Bill,

>@VAR@ still worked in configure_file.  I just tested.

For me it does not work with the current CVS-version (from last Friday). I
have the following CMakeLists.txt file:

SET(TEST c:/TEMP/test/CMake/file.txt)
CONFIGURE_FILE(@TEST@ c:/TEMP/test/CMake/file2.txt)

After running cmake on it, it gave the following output:

CMake Error: File C:/TEMP/test/CMake/@TEST@ does not exist.
CMake Error: Error in cmake code at
C:/TEMP/test/CMake/CMakeLists.txt:2:
CONFIGURE_FILE Problem configuring file
Current CMake stack:
C:/TEMP/test/CMake/CMakeLists.txt;c:/ThirdParty/WIN32/CM
AKE/2.4.x/share/cmake-2.5/Modules/CMakeCInformation.cmake
-- Configuring done

It seems to partly resolve the variable until the filename (file.txt) and
appends @TEST at . Strange...

>However, I have removed this bug fix in cvs,
>and it will not be in 2.4.4.   It breaks backwards compatibility too much.
>
>-Bill
>
Thanks.

Cheers

Marco




More information about the CMake mailing list