Re: [cmake-developers] Extend CMAKE__FLAGS(_) from a CMake Toolchain

2017-08-23 Thread maikel van den Hurk
King Verzonden: woensdag 23 augustus 2017 17:33:25 Aan: maikel van den Hurk CC: cmake-developers@cmake.org Onderwerp: Re: [cmake-developers] Extend CMAKE__FLAGS(_) from a CMake Toolchain On 08/23/2017 11:27 AM, maikel van den Hurk wrote: > change ... optimisation from O3 (CMake internal setting)

Re: [cmake-developers] Extend CMAKE__FLAGS(_) from a CMake Toolchain

2017-08-23 Thread Brad King
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 wa

Re: [cmake-developers] Extend CMAKE__FLAGS(_) from a CMake Toolchain

2017-08-23 Thread maikel van den Hurk
: maikel van den Hurk; cmake-developers@cmake.org Onderwerp: Re: [cmake-developers] Extend CMAKE__FLAGS(_) from a CMake Toolchain On 08/23/2017 09:56 AM, maikel van den Hurk wrote: > I was wondering why there is no ability to define > CMAKE__FLAGS(_) within a CMake Toolchain file, but

Re: [cmake-developers] Extend CMAKE__FLAGS(_) from a CMake Toolchain

2017-08-23 Thread Brad King
On 08/23/2017 09:56 AM, maikel van den Hurk wrote: > I was wondering why there is no ability to define > CMAKE__FLAGS(_) within a CMake Toolchain file, but still > benefit from the CMAKE__INIT_FLAGS(_) detected from CMake > internals. This has been possible since commit v3.7.0-rc1~392^2 (Honor

[cmake-developers] Extend CMAKE__FLAGS(_) from a CMake Toolchain

2017-08-23 Thread maikel van den Hurk
I was wondering why there is no ability to define CMAKE__FLAGS(_) within a CMake Toolchain file, but still benefit from the CMAKE__INIT_FLAGS(_) detected from CMake internals. Is certain extension considered before? Or are then any reasons to not do this? Would be interested to hear if this is