Re: [CMake] Stray backslash appearing when CMAKE_CXX_FLAGS_RELEASE used in custom command

2019-11-04 Thread Stephen Morris
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

Re: [CMake] Stray backslash appearing when CMAKE_CXX_FLAGS_RELEASE used in custom command

2019-11-03 Thread Eric Doenges
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..

[CMake] Stray backslash appearing when CMAKE_CXX_FLAGS_RELEASE used in custom command

2019-11-01 Thread 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.. > get_target_property(compile_options, mytarget, COMPILE_OPTIONS) >