Skip to content

Commit

Permalink
cmake: maybe fix boost again
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed May 10, 2024
1 parent 83daf9c commit 83d2312
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ set(BOOST_ENABLE_CMAKE ON)
find_package(Boost 1.81.0 COMPONENTS system QUIET)
if (NOT Boost_FOUND)
FetchContent_Declare(Boost
SYSTEM
URL https://github.com/boostorg/boost/releases/download/boost-1.81.0/boost-1.81.0.tar.gz
URL_HASH "SHA1=f71f661f893f39b7b82d66c54980349716f874a2"
)
Expand Down Expand Up @@ -58,11 +57,13 @@ else()
target_compile_options(bciabs_scpi PRIVATE -Wall -Wextra)
endif()

target_include_directories(bciabs_scpi PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_include_directories(bciabs_scpi
PUBLIC ${PROJECT_SOURCE_DIR}/include
PRIVATE ${Boost_INCLUDE_DIRS}
)

target_link_libraries(bciabs_scpi PRIVATE
fmt::fmt-header-only
fast_float
Boost::boost
Boost::system
${Boost_LIBRARIES}
)

0 comments on commit 83d2312

Please sign in to comment.