Skip to content

Commit

Permalink
fix ci build again
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Jun 5, 2022
1 parent ace67cf commit 1579641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ if(EXISTS "$ENV{CPM_SOURCE_CACHE}/boost_1_79_0")
CACHE PATH "Manual override"
)
# Workaround to compile some boost libs. CK
include_directories(${CPM_Boost_SOURCE})
include_directories(SYSTEM ${CPM_Boost_SOURCE})
add_subdirectory(${CPM_Boost_SOURCE} Boost EXCLUDE_FROM_ALL)
else()
CPMAddPackage(
NAME boost-cmake
Expand All @@ -36,9 +37,8 @@ else()
)
endif()

add_subdirectory(${CPM_Boost_SOURCE} Boost EXCLUDE_FROM_ALL)
if(NOT TARGET Boost::asio)
message(WARNING "Missing Boost::asio iterface library!")
message(WARNING "Missing Boost::asio interface library!")
add_library(Boost::asio ALIAS Boost::boost)
target_link_libraries(Boost::boost INTERFACE Threads::Threads)
endif()
Expand Down

0 comments on commit 1579641

Please sign in to comment.