[CMake] different flags in debug and release

Ingrid Kemgoum ingrid.kemgoum at gmail.com
Fri Jun 13 11:53:46 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080613/60cffadc/attachment.htm>


More information about the CMake mailing list