Skip to content

Commit 8c80e7c

Browse files
authored
disabled -Wpoison-system-directories warnings on macOS for now (#542)
1 parent ad24c6e commit 8c80e7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
7070
# use force DWARF 4 debug format since not all tools might be able to handle DWARF 5 yet - e.g. valgrind on ubuntu 20.04
7171
add_compile_options(-gdwarf-4)
7272
endif()
73+
if (APPLE)
74+
# CMake is sometimes chosing the wrong compiler on macos-* runners
75+
# see https://github.com/actions/runner/issues/4034
76+
add_compile_options(-Wno-poison-system-directories)
77+
endif()
7378
endif()
7479

7580
add_library(simplecpp_obj OBJECT simplecpp.cpp)

0 commit comments

Comments
 (0)