CMake configure step fails when native path Boost_ROOT
is passed when building HPX
#6495
Labels
Milestone
Boost_ROOT
is passed when building HPX
#6495
I am configuring a project that uses HPX. Configuring, building, installing HPX works fine, but when
Boost_ROOT
was set using a native path (backslashes on Windows), my project can't use the installed HPX. Although HPX builds fine, an HPX CMake script gets installed containing the native path, which trips CMake when configuring my project.I can pass a non-native path as
Boost_ROOT
, containing forward slashes, and everything works fine, but the path is actually stored in an environment variable ($CONDA_PREFIX/Library
) which I want to use. In this environment variables the path contains backslashes.Expected Behavior
Configure my project using installed HPX succeeds.
Actual Behavior
CMake stops:
Steps to Reproduce the Problem
On Windows:
-D Boost_ROOT=<native path>
-D HPX_ROOT=<hpx install prefix>
The second step fails with the above error message. The location of Boost is stored in the
HPX_BOOST_ROOT
variable in the installedHPXConfig.cmake
file, in native path format, with backslashes.This is a fix, I think: https://cmake.org/cmake/help/latest/command/file.html#to-cmake-path This can be used when setting
HPX_BOOST_ROOT
. Maybe other variables that contain paths should be updated as well?Specifications
The text was updated successfully, but these errors were encountered: