Re: [CMake] different flags in debug and release

2008-06-16 Thread Werner Smekal
Hi, the help on set_target_properties delivers: The LINK_FLAGS property can be used to add extra flags to the link step of a target. LINK_FLAGS_CONFIG will add to the configuration CONFIG, for example, DEBUG, RELEASE, MINSIZEREL, RELWITHDEBINFO. So if you use the command

[CMake] different flags in debug and release

2008-06-13 Thread Ingrid Kemgoum
Hi, i'm building a visual 8 2005 project and i want to set different flags (link and compile) for mmy library and i don't know how to do. i've tried if(MSVC_VERSION) #flags in release case IF(CMAKE_BUILD_TYPE MATCHES Release) message(status on est dans la partie release)