diff --git a/CMakeLists.txt b/CMakeLists.txt index 947c72e..8a7bbc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,9 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options("-Wno-#warnings") add_compile_options(-Wthread-safety -Wno-deprecated -Wstring-conversion -Wliteral-conversion) - add_link_options(-Wl,-no_warn_duplicate_libraries) + if(APPLE) + add_link_options(-Wl,-no_warn_duplicate_libraries) + endif() endif() if(APPLE)