<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: [CMake] @MY_VAR@ are replaced by empty string !</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>I am just trying to do a ADD_CUSTOM_COMMAND<BR>
<BR>
Actually just try to do:<BR>
MESSAGE ( STATUS &quot;Here a string that dissapears: @MY_VAR@ and gone it is&quot; )<BR>
<BR>
-Martin<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: cmake-bounces+mlu=danware.dk@cmake.org on behalf of Brandon Van Every<BR>
Sent: Wed 2/13/2008 6:27 PM<BR>
To: CMake<BR>
Subject: Re: [CMake] @MY_VAR@ are replaced by empty string !<BR>
<BR>
2008/2/13 Martin Lütken &lt;mlu@danware.dk&gt;:<BR>
&gt;<BR>
&gt; SHORT:<BR>
&gt;&nbsp; It's seems impossible to contruct a string containing something like this:<BR>
&gt;&nbsp; &quot;@MY_VAR@&quot;. The whole thing gets replaced by an empty string regardless<BR>
&gt; whether the MY_VAR variable is set or not.<BR>
<BR>
Well, I'm not sure I've resolved your bug, but I found a bug.&nbsp; If a<BR>
&quot;cmake -P myscript&quot; contains a configure_file and attempts to execute<BR>
it, it dies with a bizarre error about CMake not being built<BR>
correctly.&nbsp; The &quot;cmake -P&quot; docs do say that a script executed in this<BR>
manner does not have any configuration step or cache.&nbsp; However, it's<BR>
not reasonable for it to die with the error it's giving.&nbsp; I've filed<BR>
bug <A HREF="http://cmake.org/Bug/view.php?id=6337">http://cmake.org/Bug/view.php?id=6337</A> &quot;cmake -P crashes on<BR>
configure_file&quot;.<BR>
<BR>
Are you using cmake -P or a CMakeLists.txt?<BR>
<BR>
Cheers,<BR>
Brandon Van Every<BR>
_______________________________________________<BR>
CMake mailing list<BR>
CMake@cmake.org<BR>
<A HREF="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</A><BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>