[CMake] VS resource compiler preprocessor defines

Andreas Pakulat apaku at gmx.de
Tue Jan 18 08:42:28 EST 2011


On 18.01.11 14:11:15, "Sören Freudiger" wrote:
> Hello
> Right now the CXX preprocessor defines are also used as the preprocessor defines for the resource compiler (rc). Is there a way of changing that behavior? We are using different preprocessor defines for cl and rc. And sometimes we even connot use the cxx flags for the rc compiler...
> 
> Any idea?

If you don't use add_definitions, but instead use set_target_properties
with COMPILE_DEFINITIONS and set_source_properties then you should be able
to set completely different defines for the .rc source files than the rest
of the same target.

Andreas

-- 
Never look up when dragons fly overhead.


More information about the CMake mailing list