mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-09-23 23:49:48 +02:00
Bugfix for OSX
This commit is contained in:
CMakeLists.txt
airspy_source
airspyhf_source
audio_sink
bladerf_source
core
falcon9_decoder
file_source
hackrf_source
meteor_demodulator
plutosdr_source
radio
recorder
rtl_sdr_source
rtl_tcp_source
rx888_source
sdrplay_source
soapy_source
spyserver_source
weather_sat_decoder
@@ -3,9 +3,11 @@ project(bladerf_source)
|
||||
|
||||
if (MSVC)
|
||||
set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -fpermissive")
|
||||
endif (MSVC)
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup")
|
||||
else ()
|
||||
set(CMAKE_CXX_FLAGS "-O3 -std=c++17")
|
||||
endif ()
|
||||
|
||||
include_directories("src/")
|
||||
|
||||
@@ -23,7 +25,7 @@ if (MSVC)
|
||||
else (MSVC)
|
||||
# Not in pkg-config
|
||||
target_link_libraries(bladerf_source PUBLIC libbladeRF)
|
||||
endif (MSVC)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS bladerf_source DESTINATION lib/sdrpp/plugins)
|
Reference in New Issue
Block a user