We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8e36eb commit f3af3d1Copy full SHA for f3af3d1
CMakeLists.txt
@@ -85,6 +85,12 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
85
-Wno-switch-enum
86
-Wno-undef
87
)
88
+ # The detection of cross compilation by -Wpoison-system-directories has false positives on macOS because
89
+ # --sysroot is implicitly added. Turn the warning off.
90
+ check_c_compiler_flag(-Wpoison-system-directories HAVE_POISON_SYSTEM_DIRECTORIES_WARNING)
91
+ if(HAVE_POISON_SYSTEM_DIRECTORIES_WARNING)
92
+ add_definitions(-Wno-poison-system-directories)
93
+ endif()
94
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
95
add_definitions(-std=c99) # Enforce C99 for gcc
96
MESSAGE(STATUS "Enabling warnings (for colorist lib/bin) for GCC")
0 commit comments