From da9528576a81825b1d37eac8e2d11c35ed893f33 Mon Sep 17 00:00:00 2001 From: Alejandro Sior Date: Sat, 24 Oct 2020 17:09:25 +0200 Subject: [PATCH] fixed openbsd build 3 --- CMakeLists.txt | 5 +++++ core/CMakeLists.txt | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfaa8241..565687f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,11 @@ if (MSVC) add_custom_target(do_always_volk ALL xcopy /s \"C:/Program Files/PothosSDR/bin\\volk.dll\" \"$\" /Y) endif (MSVC) + +if (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") + add_custom_target(do_always ALL cp \"$/sdrpp_core.so\" \"$\") +endif () + if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") add_custom_target(do_always ALL cp \"$/sdrpp_core.so\" \"$\") endif () diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 9c2a842f..a3400a9f 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -15,7 +15,6 @@ file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c") # Add code to dyn lib add_library(sdrpp_core SHARED ${SRC}) -set_target_properties(sdrpp_core PROPERTIES PREFIX "") # Include core headers target_include_directories(sdrpp_core PUBLIC "src/")