From e76015f28f2e4d838d1fa877058b25503dd21587 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 6 Nov 2020 15:13:34 +0000 Subject: [PATCH] Use header only Boost linking for ADS-B plugin --- plugins/channelrx/demodadsb/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/channelrx/demodadsb/CMakeLists.txt b/plugins/channelrx/demodadsb/CMakeLists.txt index a3e4e4f58..36d5ddf23 100644 --- a/plugins/channelrx/demodadsb/CMakeLists.txt +++ b/plugins/channelrx/demodadsb/CMakeLists.txt @@ -1,7 +1,3 @@ -if(WIN32) - link_directories(${BOOST_LIBRARYDIR}) -endif() - project(adsb) set(adsb_SOURCES @@ -75,7 +71,12 @@ add_library(${TARGET_NAME} SHARED ${adsb_SOURCES} ) +if (NOT WIN32) + link_directories(${Boost_LIBRARY_DIRS}) +endif() + target_link_libraries(${TARGET_NAME} + Boost::disable_autolinking Qt5::Core ${TARGET_LIB} sdrbase