From 4587632252ad00f481940cf18292964d66568b5a Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 1 Jun 2020 02:51:31 -0400 Subject: [PATCH] Check for AppleClang as well --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab79451ae..832ffd855 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)