Skip to content

Commit

Permalink
cmake: fix boost libraries (again...)
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed May 10, 2024
1 parent 540cd13 commit 83daf9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)

0 comments on commit 83daf9c

Please sign in to comment.