diff --git a/cmake/compileroptions.cmake b/cmake/compileroptions.cmake index ac4631bf0d1..91fb5ca9435 100644 --- a/cmake/compileroptions.cmake +++ b/cmake/compileroptions.cmake @@ -100,7 +100,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-gdwarf-4) endif() - if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16) + if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") add_compile_options(-Wno-poison-system-directories) endif()