mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-23 08:24:44 +01:00
Another potential fix for the MacOS issues
This commit is contained in:
parent
fcd759654c
commit
83fc20cacc
@ -44,6 +44,9 @@ option(OPT_BUILD_FREQUENCY_MANAGER "Build the Frequency Manager module" ON)
|
|||||||
option(OPT_BUILD_RECORDER "Audio and baseband recorder" ON)
|
option(OPT_BUILD_RECORDER "Audio and baseband recorder" ON)
|
||||||
option(OPT_BUILD_RIGCTL_SERVER "Rigctl backend for controlling SDR++ with software like gpredict" ON)
|
option(OPT_BUILD_RIGCTL_SERVER "Rigctl backend for controlling SDR++ with software like gpredict" ON)
|
||||||
|
|
||||||
|
# Core of SDR++
|
||||||
|
add_subdirectory("core")
|
||||||
|
|
||||||
# Compiler arguments for each platform
|
# Compiler arguments for each platform
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/O2 /Ob2 /std:c++17 /EHsc)
|
add_compile_options(/O2 /Ob2 /std:c++17 /EHsc)
|
||||||
@ -53,10 +56,6 @@ else ()
|
|||||||
add_compile_options(-O3 -std=c++17)
|
add_compile_options(-O3 -std=c++17)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Core of SDR++
|
|
||||||
add_subdirectory("core")
|
|
||||||
|
|
||||||
|
|
||||||
# Source modules
|
# Source modules
|
||||||
if (OPT_BUILD_AIRSPY_SOURCE)
|
if (OPT_BUILD_AIRSPY_SOURCE)
|
||||||
add_subdirectory("source_modules/airspy_source")
|
add_subdirectory("source_modules/airspy_source")
|
||||||
|
@ -18,8 +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 -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)
|
||||||
target_compile_options(sdrpp_core PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-std=c++17>)
|
|
||||||
else ()
|
else ()
|
||||||
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17)
|
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user