Steven Wilson wrote:


---------- Forwarded message ----------
From: *Steven Wilson* <[email protected] <mailto:[email protected]>>
Date: Mon, Oct 19, 2009 at 6:11 PM
Subject: Re: [CMake] COMPILE_FLAGS_<CONFIG>
To: Tyler Roscoe <[email protected] <mailto:[email protected]>>


Yes, but CMAKE_CXX_FLAGS_<CONFIG> and CMAKE_C_FLAGS_<CONFIG> are global in scope. I want to be able to make changes to the compilation flags at the target level based on the current configuration.

Would set_target_properties() work?  Then you can do something like:

set_target_properties( ${TARGET} PROPERTIES COMPILE_FLAGS "-fmyflag" )

to set compile flags on a target by target basis.



On Mon, Oct 19, 2009 at 4:48 PM, Tyler Roscoe <[email protected] <mailto:[email protected]>> wrote:

    On Mon, Oct 19, 2009 at 04:06:29PM -0600, Steven Wilson wrote:
     > It appears that CMake does not support a COMPILE_FLAGS_<CONFIG>
    target
> property. This kind of property would be incredibly useful. Is there
     > some reason it does not exist?

    Are you aware of CMAKE_CXX_FLAGS_<CONFIG>?

    tyler




------------------------------------------------------------------------

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


--
Will Dicharry
Software Developer
Stellar Science Ltd Co

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to