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
Alexandru Ciobanu wrote:
Hi!
Is there a way to remove -Dtarget_EXPORTS from the compile flags?
I know it has its utility for shared libs, but in my case it does not
allow me to use Precompiled Headers ( with Intel C++ Compiler ).
This specific compiler wants to have exactly the same flags when
creating and using precompiled headers, e.g.:
icpc ...FLAGS... -create-pch my.pchi ( create )
icpc ...FLAGS... -use-pch my.pchi ( use )
CMake makes it look like this:
icpc ...FLAGS... -create-pch my.pchi (
create )
icpc -Dmy_EXPORTS ...FLAGS... -use-pch my.pchi ( use )
Which results in the Intel Compiler warning:
Warning #672: the command line options do not match those used when
precompiled header file "my.pchi" was created
So how do I remove/disable that flag?
Alex Ciobanu
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake