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

set_target_properties( target PROPERTIES LINK_FLAGS_DEBUG /Zl )

the link flag will only be set for the debug case. Don't know if there is an equivalent way for COMPILE_FLAGS but I think so (just try it).

Best Regards,
Werner


On 13.06.2008, at 17:53, Ingrid Kemgoum wrote:

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")
       set_target_properties(Hello PROPERTIES ...

and obviously this doesn't work.
what shoul i do?

thanks for help

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to