test should not inherit the compiler setup from their related projects,
since unit tests with gtest/gmock will result in a lot of warnings,
if the related project uses strict compiler settings.
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
MACRO(project_type mode)
string(TOUPPER ${mode} mode_capital)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILER_FLAGS_${mode_capital}}")
+ set(CMAKE_CXX_FLAGS "${COMPILER_FLAGS_${mode_capital}}")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
if (mode_capital STREQUAL "PLUGIN" AND WITH_STATIC_LIBRARIES)