I am just trying to do a ADD_CUSTOM_COMMAND

Actually just try to do:
MESSAGE ( STATUS "Here a string that dissapears: @MY_VAR@ and gone it is" )

-Martin



-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Brandon Van Every
Sent: Wed 2/13/2008 6:27 PM
To: CMake
Subject: Re: [CMake] @MY_VAR@ are replaced by empty string !
 
2008/2/13 Martin Lütken <[EMAIL PROTECTED]>:
>
> SHORT:
>  It's seems impossible to contruct a string containing something like this:
>  "@MY_VAR@". The whole thing gets replaced by an empty string regardless
> whether the MY_VAR variable is set or not.

Well, I'm not sure I've resolved your bug, but I found a bug.  If a
"cmake -P myscript" contains a configure_file and attempts to execute
it, it dies with a bizarre error about CMake not being built
correctly.  The "cmake -P" docs do say that a script executed in this
manner does not have any configuration step or cache.  However, it's
not reasonable for it to die with the error it's giving.  I've filed
bug http://cmake.org/Bug/view.php?id=6337 "cmake -P crashes on
configure_file".

Are you using cmake -P or a CMakeLists.txt?

Cheers,
Brandon Van Every
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake



_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to