We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Wpoison-system-directories
1 parent 5c5b978 commit 08272b3Copy full SHA for 08272b3
cmake/compileroptions.cmake
@@ -100,6 +100,10 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
100
add_compile_options(-gdwarf-4)
101
endif()
102
103
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16)
104
+ add_compile_options(-Wno-poison-system-directories)
105
+ endif()
106
+
107
if(USE_LIBCXX)
108
add_compile_options(-stdlib=libc++)
109
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lc++")
0 commit comments