mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-09 12:59:06 +00:00
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-variable -Wno-unused-result
|
||||||
-Wno-unused-function -Wno-sign-compare -Wno-unknown-pragmas -Werror)
|
-Wno-unused-function -Wno-sign-compare -Wno-unknown-pragmas -Werror)
|
||||||
# doesn't work with generator expression in add_compile_options?
|
# 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)
|
add_compile_options(-Wno-unknown-warning-option -Wno-unused-private-field)
|
||||||
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
add_compile_options(-Wno-lto-type-mismatch)
|
add_compile_options(-Wno-lto-type-mismatch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user