diff --git a/CMakeLists.txt b/CMakeLists.txt index 0206836..0bc87a9 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 0d4362f..8efd53c 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}")