From 83daf9c52e35467466fc927bf37423c37258db7e Mon Sep 17 00:00:00 2001 From: Will Eccles Date: Fri, 10 May 2024 15:36:15 -0400 Subject: [PATCH] cmake: fix boost libraries (again...) --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 26286fe..a6d0fae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,10 +23,10 @@ if(NOT fmt_FOUND) endif() endif() +set(BOOST_INCLUDE_LIBRARIES system asio) +set(BOOST_ENABLE_CMAKE ON) find_package(Boost 1.81.0 COMPONENTS system QUIET) if (NOT Boost_FOUND) - set(BOOST_INCLUDE_LIBRARIES system asio) - set(BOOST_ENABLE_CMAKE ON) FetchContent_Declare(Boost SYSTEM URL https://github.com/boostorg/boost/releases/download/boost-1.81.0/boost-1.81.0.tar.gz @@ -63,5 +63,6 @@ target_include_directories(bciabs_scpi PUBLIC ${PROJECT_SOURCE_DIR}/include) target_link_libraries(bciabs_scpi PRIVATE fmt::fmt-header-only fast_float + Boost::boost Boost::system )