MacOS fix 4

This commit is contained in:
AlexandreRouma 2021-10-03 21:07:12 +02:00
parent 4ea9b96397
commit b4e2875acd

View File

@ -18,7 +18,8 @@ add_library(sdrpp_core SHARED ${SRC})
if (MSVC)
target_compile_options(sdrpp_core PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup -mmacosx-version-min=10.10)
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
target_link_options(sdrpp_core PRIVATE -mmacosx-version-min=10.10)
else ()
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17)
endif ()