[CMake] MSVC71 problems when upgrading to CMake 2.6.2

Brad King brad.king at kitware.com
Thu Oct 9 13:38:35 EDT 2008


Luke Kucalaba wrote:
> the strategy we
> have used to set the compiler definitions for each build configuration

CMake 2.6 provides an explicit feature for this:

http://www.cmake.org/Wiki/CMake_2.6_Notes#Preprocessor_Definitions
http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_dir:COMPILE_DEFINITIONS
http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_dir:COMPILE_DEFINITIONS_CONFIG
http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:COMPILE_DEFINITIONS
http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:COMPILE_DEFINITIONS_CONFIG

-Brad


More information about the CMake mailing list