On 4 November at 08:43, Eric Doenges wrote:
> Welcome to the wonderful world of lists and their interaction with quoting in
> CMake ! Since space is used
> as a list item separator outside of double quoted strings, CMake is escaping
> the space within CXX_FLAGS
> to keep it as a single element
Am 01.11.19 um 17:24 schrieb Stephen Morris:
On 1 November at 10:02, Stephen Morris wrote:
My approach is basically to set up a custom command thus:
set(CXX_FLAGS ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}) .. or whatever,
depending on the current configuration..
On 1 November at 10:02, Stephen Morris wrote:
> My approach is basically to set up a custom command thus:
> set(CXX_FLAGS ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}) .. or whatever,
> depending on the current configuration..
> get_target_property(compile_options, mytarget, COMPILE_OPTIONS)
>