Define OpenMW specific C++ flags

pull/3157/head
Evil Eye 3 years ago
parent d680aa26e9
commit a1825980c4

@ -32,6 +32,7 @@ declare -a CMAKE_CONF_OPTS=(
-DCMAKE_INSTALL_PREFIX=install
-DCMAKE_C_FLAGS='-Werror'
-DCMAKE_CXX_FLAGS="${CXX_FLAGS}"
-DOPENMW_CXX_FLAGS="-Werror=implicit-fallthrough"
)
if [[ $CI_OPENMW_USE_STATIC_DEPS ]]; then

@ -543,8 +543,8 @@ if (BUILD_OPENCS)
add_subdirectory (extern/osgQt)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=implicit-fallthrough")
if (OPENMW_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENMW_CXX_FLAGS}")
endif()
# Components

Loading…
Cancel
Save