From 16098ba7172aa94ef63c002341038f4c46e38e70 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sun, 18 Apr 2021 04:13:46 +0200 Subject: [PATCH] =?UTF-8?q?new=20fixes=C2=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 4 ++-- core/CMakeLists.txt | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02068369..0bc87a9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 0d4362f7..8efd53c1 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -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}")