We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6d5699 commit 2aa94d0Copy full SHA for 2aa94d0
CMakeLists.txt
@@ -70,6 +70,14 @@ endif()
70
71
find_package(Threads)
72
73
+# for Apple clang 15 under cmake 4.0.0, disable pedantic warnings explicitly as it fails to treat boost properly as
74
+# system library, warnings propagate
75
+if ("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin" AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
76
+ if (CMAKE_VERSION VERSION_EQUAL "4.0.0" AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "15.0")
77
+ set(PEDANTIC OFF)
78
+ endif()
79
+endif()
80
+
81
if(NOT PEDANTIC)
82
message(WARNING "-- Pedantic build flags turned off. Warnings will not make compilation fail. This is NOT recommended in development builds.")
83
endif()
0 commit comments