Skip to content

Commit

Permalink
Fixing Boost_ROOT to be a CMake path
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed May 24, 2024
1 parent a7af887 commit 85136fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/FindBreathe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ find_program(
DOC "Path to breathe-apidoc executable"
)

if(Breathe_APIDOC_ROOT)
file(TO_CMAKE_PATH ${Breathe_APIDOC_ROOT} Breathe_APIDOC_ROOT)
endif()

if(Breathe_APIDOC_EXECUTABLE)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
Expand Down
4 changes: 4 additions & 0 deletions cmake/HPX_SetupBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ if(NOT TARGET hpx_dependencies_boost)
string(REPLACE "/include" "" Boost_ROOT "${Boost_INCLUDE_DIRS}")
endif()

if(Boost_ROOT)
file(TO_CMAKE_PATH ${Boost_ROOT} Boost_ROOT)
endif()

add_library(hpx_dependencies_boost INTERFACE IMPORTED)

target_link_libraries(hpx_dependencies_boost INTERFACE Boost::boost)
Expand Down

0 comments on commit 85136fd

Please sign in to comment.