It seems that ADD_DEFINITIONS does not work properly<br>for <br><br>ADD_DEFINITIONS(/DPCIVERSIONID=1010)<br>ADD_DEFINITIONS(/DDNP_Major_Version=5)<br>ADD_DEFINITIONS(/DLIC_VALIDATION_OFF)<br><br>I get the following in the vcproject:
<br><br>PreprocessorDefinitions=&quot;,EXCEPTION_EXPORTS,&amp;quot;PCIVERSIONID=1010&amp;quot;,&amp;quot;DNP_Major_Version=5&amp;quot;,LIC_VALIDATION_OFF,&quot;<br><br>This translates into:<br><br>PreprocessorDefinitions=&quot;,EXCEPTION_EXPORTS,&quot;PCIVERSIONID=1010&quot;,&quot;DNP_Major_Version=5&quot;,LIC_VALIDATION_OFF,&quot;
<br><br>Which is not correct.<br><br>Is this a bug?<br>calin<br><br><div><span class="gmail_quote">On 4/12/07, <b class="gmail_sendername">Teodor Calin Hanchevici</b> &lt;<a href="mailto:calin.hanchevici@gmail.com">calin.hanchevici@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thank you Iain,<br>this does not work with VC 2003 &amp; 2007. It may be a bug in the generator.
<br><span class="sg"><br>calin</span><div><span class="e" id="q_111e6e95ab06b771_2"><br><br><div><span class="gmail_quote">On 4/12/07, <b class="gmail_sendername">Iain Hull</b> &lt;<a href="mailto:Iain.Hull@cr2.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

Iain.Hull@cr2.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Hi Calin,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">We you this for both VC60 and solaris</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">ADD_DEFINITIONS(<br>&nbsp;-DTRACE_COMPONENT=\\&quot;BWComm\\&quot; 
)</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Hope this helps,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Iain.</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Teodor Calin Hanchevici 
[mailto:<a href="mailto:calin.hanchevici@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">calin.hanchevici@gmail.com</a>] <br><b>Sent:</b> 12 April 2007 
14:47<br><b>To:</b> <a href="mailto:cmake@cmake.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cmake@cmake.org</a><br><b>Subject:</b> [CMake] ADD_DEFINITIONS 
and VC Generator question<br></font><br></div><div><span>
<div></div>Hi all,<br><br>I am trying to add some defines which have string 
values<br><br>ADD_DEFINITIONS(-DPCIVERSIONNAME=&quot;\&quot;V10.1.0\&quot;&quot;)<br><br>This works 
fine when using nmake generator but it fails when using visual studio 
generators, in the Preporcessor tab i get the value 
<br><br>&quot;PCIVERSIONNAME=&quot;&quot;V10.1.0&quot;&quot;&quot;<br><br>Is there a way to escape the quotes 
for VC generator?<br><br>Thank you,<br>calin<br>
</span></div></div>
</blockquote></div><br>
</span></div></blockquote></div><br>