diff --git a/cmake/compileroptions.cmake b/cmake/compileroptions.cmake index daf04a3d84a..ac4631bf0d1 100644 --- a/cmake/compileroptions.cmake +++ b/cmake/compileroptions.cmake @@ -100,6 +100,10 @@ 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) + add_compile_options(-Wno-poison-system-directories) + endif() + if(USE_LIBCXX) add_compile_options(-stdlib=libc++) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lc++")