[CMake] @MY_VAR@ are replaced by empty string !

Martin Lütken mlu at danware.dk
Thu Feb 14 07:38:33 EST 2008


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: cmake-bounces+mlu=danware.dk at cmake.org 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 <mlu at danware.dk>:
>
> 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
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080214/d83d4cca/attachment.html


More information about the CMake mailing list