diff --git a/cmake/config.cmake b/cmake/config.cmake index e976ad62..00cb12af 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -23,7 +23,9 @@ else() endif() if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") - add_compile_options(-fexperimental-library) + if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") + add_compile_options($<$:-fexperimental-library>) + endif() endif() if(WIN32) @@ -51,4 +53,4 @@ endif() file(GENERATE OUTPUT .gitignore CONTENT "*") -set(CMAKE_COLOR_DIAGNOSTICS ON) \ No newline at end of file +set(CMAKE_COLOR_DIAGNOSTICS ON)