mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-26 10:58:29 +01:00
MacOS fix 3
This commit is contained in:
parent
8c15e78315
commit
4ea9b96397
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user