MacOS fix 3

This commit is contained in:
AlexandreRouma 2021-10-03 20:56:24 +02:00
parent 8c15e78315
commit 4ea9b96397

View File

@ -18,7 +18,7 @@ add_library(sdrpp_core SHARED ${SRC})
if (MSVC) if (MSVC)
target_compile_options(sdrpp_core PRIVATE /O2 /Ob2 /std:c++17 /EHsc) target_compile_options(sdrpp_core PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") 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) target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup -mmacosx-version-min=10.10)
else () else ()
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17) target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17)
endif () endif ()
@ -99,10 +99,6 @@ else()
target_link_libraries(sdrpp_core PUBLIC stdc++fs) target_link_libraries(sdrpp_core PUBLIC stdc++fs)
endif () endif ()
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_compile_options(sdrpp_core PRIVATE -static)
endif ()
endif () endif ()
set(CORE_FILES ${RUNTIME_OUTPUT_DIRECTORY} PARENT_SCOPE) set(CORE_FILES ${RUNTIME_OUTPUT_DIRECTORY} PARENT_SCOPE)