Added fixes for clang

This commit is contained in:
Ryzerth 2021-04-18 03:52:13 +02:00
parent ba25eee09a
commit dfd29bfa04
3 changed files with 8 additions and 1 deletions

View File

@ -88,6 +88,10 @@ else()
set(CMAKE_CXX_FLAGS "-O3 -std=c++17")
endif (MSVC)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -undefined dynamic_lookup")
endif()
add_executable(sdrpp "src/main.cpp" "win32/resources.rc")
target_link_libraries(sdrpp PRIVATE sdrpp_core)

View File

@ -10,6 +10,10 @@ else()
endif (MSVC)
add_definitions(-DSDRPP_IS_CORE)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -undefined dynamic_lookup")
endif()
# Set the install prefix
add_compile_definitions(INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")

View File

@ -21,7 +21,6 @@ SDR++ is a cross-platform and open source SDR software with the aim of being blo
* Digital demodulators and decoders
* Light theme (I know you weirdos exist lol)
* Waterfall color scheme editor
* Switchable fft size
* other small customisation options
# Installing