mirror of https://github.com/AxioDL/metaforce.git
Check for AppleClang as well
This commit is contained in:
parent
8d2d5ef5d5
commit
4587632252
|
@ -173,7 +173,7 @@ else()
|
|||
-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")
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue