new fixesµ

This commit is contained in:
Ryzerth 2021-04-18 04:13:46 +02:00
parent dfd29bfa04
commit 16098ba717
2 changed files with 2 additions and 6 deletions

View File

@ -88,8 +88,8 @@ 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")
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
include_directories("/usr/include")
endif()
add_executable(sdrpp "src/main.cpp" "win32/resources.rc")

View File

@ -10,10 +10,6 @@ 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}")