Just for reference, I’m guessing this is related to the problem in this post?
How did you verify that the options weren’t set? Variables such as CMAKE_CXX_FLAGS
will not be modified by target_compile_options
, you’d have to check the actual options on the target via get_target_properties on property COMPILE_OPTIONS
(or by checking the actual compiler calls in the output of a verbose build).