mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
Define OpenMW specific C++ flags
This commit is contained in:
parent
d680aa26e9
commit
a1825980c4
2 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ declare -a CMAKE_CONF_OPTS=(
|
||||||
-DCMAKE_INSTALL_PREFIX=install
|
-DCMAKE_INSTALL_PREFIX=install
|
||||||
-DCMAKE_C_FLAGS='-Werror'
|
-DCMAKE_C_FLAGS='-Werror'
|
||||||
-DCMAKE_CXX_FLAGS="${CXX_FLAGS}"
|
-DCMAKE_CXX_FLAGS="${CXX_FLAGS}"
|
||||||
|
-DOPENMW_CXX_FLAGS="-Werror=implicit-fallthrough"
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $CI_OPENMW_USE_STATIC_DEPS ]]; then
|
if [[ $CI_OPENMW_USE_STATIC_DEPS ]]; then
|
||||||
|
|
|
@ -543,8 +543,8 @@ if (BUILD_OPENCS)
|
||||||
add_subdirectory (extern/osgQt)
|
add_subdirectory (extern/osgQt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
|
if (OPENMW_CXX_FLAGS)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=implicit-fallthrough")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENMW_CXX_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Components
|
# Components
|
||||||
|
|
Loading…
Reference in a new issue