Replace CXX_COMPILER_ID generator expressions

This commit is contained in:
Luke Street 2020-05-31 00:21:35 -04:00
parent 148468fd7d
commit 1e822419c5
1 changed files with 7 additions and 3 deletions

View File

@ -169,11 +169,15 @@ else()
endif()
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>
$<$<CXX_COMPILER_ID:Clang>:-Wno-unknown-warning-option>
$<$<CXX_COMPILER_ID:Clang>:-Wno-unused-private-field>
-Wall -Wno-multichar -Werror=implicit-fallthrough
-Wno-lto-type-mismatch -Wno-unused-variable -Wno-unused-result
-Wno-unused-variable -Wno-unused-result
-Wno-unused-function -Wno-sign-compare -Wno-unknown-pragmas -Werror)
# doesn't work with generator expression in add_compile_options?
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options(-Wno-unknown-warning-option -Wno-unused-private-field)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-Wno-lto-type-mismatch)
endif()
add_compile_definitions(FMT_EXCEPTIONS=0)
if(APPLE)