Skip to content

Commit

Permalink
cmake: okay how about this time, boost?
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed May 10, 2024
1 parent 83d2312 commit b77abcb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if (NOT Boost_FOUND)
if(NOT Boost_POPULATED)
message(STATUS "Fetch Boost (may take a while)")
FetchContent_MakeAvailable(Boost)
add_subdirectory(${Boost_SOURCE_DIR} ${Boost_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
endif()

Expand All @@ -57,10 +58,7 @@ else()
target_compile_options(bciabs_scpi PRIVATE -Wall -Wextra)
endif()

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

target_link_libraries(bciabs_scpi PRIVATE
fmt::fmt-header-only
Expand Down

0 comments on commit b77abcb

Please sign in to comment.