- due to the plugin refactoring, the CMAKE_CXX_FLAGS handling was changed too.
- currently it is not possible to set additional CMAKE_CXX_FLAGS from outside
- this patch fixes that issue
Signed-off-by: Michael Schuldt <michael.schuldt@bmw.de>
MACRO(project_type mode)
string(TOUPPER ${mode} mode_capital)
- set(CMAKE_CXX_FLAGS "${COMPILER_FLAGS_${mode_capital}}")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILER_FLAGS_${mode_capital}}")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
if (mode_capital STREQUAL "PLUGIN" AND WITH_STATIC_LIBRARIES)