[cmake-developers] Extend CMAKE_<LANG>_FLAGS(_<CONFIG>) from a CMake Toolchain

maikel van den Hurk maikelvandenhurk at hotmail.com
Wed Aug 23 12:51:56 EDT 2017

That would mean a lot of duplication for just redefining a particular value. Each compiler will have likely a way too handle the definition of multiple flags with the same purpose and based on that prepending or adding could be performed internally.
Van: Brad King <brad.king at kitware.com>
Verzonden: woensdag 23 augustus 2017 17:33:25
Aan: maikel van den Hurk
CC: cmake-developers at cmake.org
Onderwerp: Re: [cmake-developers] Extend CMAKE_<LANG>_FLAGS(_<CONFIG>) from a CMake Toolchain

On 08/23/2017 11:27 AM, maikel van den Hurk wrote:
> change ... optimisation from O3 (CMake internal setting) to O2.

If you want to change the default flags instead of only adding
(prepending) to them then you need to set all the flags by
setting the cache entry directly.  A toolchain file that wants
such control should be setting all the flags anyway.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20170823/dc462768/attachment.html>

More information about the cmake-developers mailing list