[CMake] removing -Dtarget_EXPORTS (workaround)

Bill Hoffman bill.hoffman at kitware.com
Thu Jul 12 09:28:48 EDT 2007


Alexandru Ciobanu wrote:
> Hi!
>
> I am posting the workaround I have found.
>
> Using the following command:
>    set_target_properties ( mytgt PROPERTIES LINK_FLAGS DEFINE_SYMBOL "" )
>
> I get:
>   icpc ...FLAGS... -create-pch my.pchi        ( create )
>   icpc -D ...FLAGS... -use-pch my.pchi        ( use )
> which is ok with the intel compiler.
>
> The -D seems to not bother it.
>
> Alex Ciobanu
Seems like it would be easier to add the -D to the create step....

-Bill


More information about the CMake mailing list