diff --git a/CMakeLists.txt b/CMakeLists.txt index 153b9027c51..2eb6942eb2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,6 +201,9 @@ else() endif() endif() + if (CMAKE_CXX_COMPILER_ID MATCHES "AppleClang" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "16") + add_compile_options($<$:-fexperimental-library>) + endif() endif() # Definitions for all targets