Skip to content

Commit

Permalink
Adding description for fetch option
Browse files Browse the repository at this point in the history
Signed-off-by: Vedant <vedantnimjed@gmail.com>
  • Loading branch information
vrnimje committed Jan 24, 2024
1 parent d0f3a32 commit 8a8d6ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ endif()
hpx_option(
HPX_WITH_FETCH_BOOST
BOOL
"Use FetchContent to fetch Asio. By default an installed Asio will be used. (default: OFF)"
"Use FetchContent to fetch Boost. By default an installed Boost will be used. (default: OFF)"
OFF
CATEGORY "Build Targets"
ADVANCED
Expand Down
11 changes: 9 additions & 2 deletions cmake/HPX_SetupBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if(HPX_WITH_FETCH_BOOST)
Boost
URL https://github.com/boostorg/boost/releases/download/boost-${HPX_WITH_BOOST_VERSION}/boost-${HPX_WITH_BOOST_VERSION}.tar.gz
TLS_VERIFY true
DOWNLOAD_EXTRACT_TIMESTAMP true
)
fetchcontent_populate(Boost)

Expand Down Expand Up @@ -53,8 +54,14 @@ if(HPX_WITH_FETCH_BOOST)
)
endif()

set(Boost_DIR "${CMAKE_BINARY_DIR}/_deps/boost-src")
set(Boost_INCLUDE_DIR "${CMAKE_BINARY_DIR}/_deps/boost-src")
set(Boost_DIR
"${CMAKE_BINARY_DIR}/_deps/boost-src"
CACHE INTERNAL ""
)
set(Boost_INCLUDE_DIR
"${CMAKE_BINARY_DIR}/_deps/boost-src"
CACHE INTERNAL ""
)
endif()

# In case find_package(HPX) is called multiple times
Expand Down

0 comments on commit 8a8d6ac

Please sign in to comment.