[CMake] Visual C++ 2010 generator & resource files

Dimitri Kaparis kaparis.dimitri at gmail.com
Sat Oct 9 08:25:28 EDT 2010


Greetings,

Using CMake 2.8.2. The Visual C++ 2008 generator applies preprocessor
definitions to the resource files in the project (the "preprocessor
definitions" property in the "Resources" section of the project
contains , e.g. the macros added with "add_definitions"). With the
Visual C++ 2010 generator, however this is no longer the case - added
definitions are not applied to resource compilation. It doesn't work
to explicitly add the definitions to the resource file with
set_source_file_properties, either.

Is it a bug with the VC++ 2010 generator? Any workarounds?

Thanks,
Dimitri


More information about the CMake mailing list