1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-06 09:07:19 +02:00

cmake: add -Wold-style-cast warning check to CXX sources (thx @madebr)

This commit is contained in:
Filip Gawin 2018-07-29 16:34:26 +02:00
parent d95d05e291
commit f62a0d2b47

View File

@ -12,7 +12,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang
"-Wextra" "-Wextra"
"-Wdouble-promotion" "-Wdouble-promotion"
"-Wpedantic" "-Wpedantic"
"-pthread" "$<IF:$<COMPILE_LANGUAGE:CXX>,-Wold-style-cast,>"
) )
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_definitions(rw_interface target_compile_definitions(rw_interface