[CMake] ADD_DEFINITIONS and VC Generator question
Teodor Calin Hanchevici
calin.hanchevici at gmail.com
Fri Apr 13 11:56:10 EDT 2007
It seems that ADD_DEFINITIONS does not work properly
for
ADD_DEFINITIONS(/DPCIVERSIONID=1010)
ADD_DEFINITIONS(/DDNP_Major_Version=5)
ADD_DEFINITIONS(/DLIC_VALIDATION_OFF)
I get the following in the vcproject:
PreprocessorDefinitions=",EXCEPTION_EXPORTS,"PCIVERSIONID=1010","DNP_Major_Version=5",LIC_VALIDATION_OFF,"
This translates into:
PreprocessorDefinitions=",EXCEPTION_EXPORTS,"PCIVERSIONID=1010","DNP_Major_Version=5",LIC_VALIDATION_OFF,"
Which is not correct.
Is this a bug?
calin
On 4/12/07, Teodor Calin Hanchevici <calin.hanchevici at gmail.com> wrote:
>
> Thank you Iain,
> this does not work with VC 2003 & 2007. It may be a bug in the generator.
>
> calin
>
> On 4/12/07, Iain Hull < Iain.Hull at cr2.com> wrote:
> >
> > Hi Calin,
> >
> > We you this for both VC60 and solaris
> > ADD_DEFINITIONS(
> > -DTRACE_COMPONENT=\\"BWComm\\" )
> >
> > Hope this helps,
> >
> > Iain.
> >
> > ------------------------------
> > *From:* Teodor Calin Hanchevici [mailto:calin.hanchevici at gmail.com]
> > *Sent:* 12 April 2007 14:47
> > *To:* cmake at cmake.org
> > *Subject:* [CMake] ADD_DEFINITIONS and VC Generator question
> >
> > Hi all,
> >
> > I am trying to add some defines which have string values
> >
> > ADD_DEFINITIONS(-DPCIVERSIONNAME="\"V10.1.0\"")
> >
> > This works fine when using nmake generator but it fails when using
> > visual studio generators, in the Preporcessor tab i get the value
> >
> > "PCIVERSIONNAME=""V10.1.0"""
> >
> > Is there a way to escape the quotes for VC generator?
> >
> > Thank you,
> > calin
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070413/76fa72f9/attachment.htm
More information about the CMake
mailing list