[CMake] COMPILE_FLAGS_<CONFIG>
Will Dicharry
wdicharry at stellarscience.com
Tue Oct 20 10:42:55 EDT 2009
Steven Wilson wrote:
>
>
> ---------- Forwarded message ----------
> From: *Steven Wilson* <steven.wesley.wilson at gmail.com
> <mailto:steven.wesley.wilson at gmail.com>>
> Date: Mon, Oct 19, 2009 at 6:11 PM
> Subject: Re: [CMake] COMPILE_FLAGS_<CONFIG>
> To: Tyler Roscoe <tyler at cryptio.net <mailto:tyler at cryptio.net>>
>
>
> 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 <tyler at cryptio.net
> <mailto:tyler at cryptio.net>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3344 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091020/f7632286/attachment.bin>
More information about the CMake
mailing list