Currently, the compile options are set via CMAKE_CXX_FLAGS.
In modern CMake, this should be replaced by either providing compiler-specific presets or at least setting it only for the desired targets.
In order to avoid duplication, they could be stored in a variable which are then used via target_compile_options for each target.
Currently, the compile options are set via
CMAKE_CXX_FLAGS.In modern CMake, this should be replaced by either providing compiler-specific presets or at least setting it only for the desired targets.
In order to avoid duplication, they could be stored in a variable which are then used via
target_compile_optionsfor each target.