diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7d8d09c67e..88470c4c42 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -141,7 +141,7 @@ else() -Wno-missing-field-initializers ) - if (CXX_CLANG OR CXX_ICC) # Clang or AppleClang + if (CXX_CLANG OR CXX_ICC OR CXX_APPLE) # Clang, AppleClang, or Intel C++ if (NOT MSVC) add_compile_options( -Werror=shadow-uncaptured-local @@ -165,10 +165,6 @@ else() add_compile_options("-stdlib=libc++") endif() - if (CXX_APPLE) - add_compile_options(-Wno-unused-private-field) - endif() - # GCC bugs if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "11" AND CXX_GCC) # These diagnostics would be great if they worked, but are just completely broken