Skip to content

Commit

Permalink
add BOOST_ROOT_1_72_0 manually
Browse files Browse the repository at this point in the history
  • Loading branch information
sc1f committed Apr 11, 2020
1 parent ed97e9a commit 03ef514
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ jobs:

- script: yarn build_python --ci $(python_flag)
displayName: 'build'
env:
BOOST_ROOT_1_72_0: "C:/hostedtoolcache/windows/Boost/1.72.0/"


- job: 'Mac'
Expand Down
17 changes: 8 additions & 9 deletions cpp/perspective/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,14 @@ elseif(PSP_CPP_BUILD OR PSP_PYTHON_BUILD)
# add BOOST_ROOT_1_72_0 so it can find the custom installation of
# boost on those VMs:
# https://github.com/actions/virtual-environments/issues/6870
if(DEFINED(ENV{BOOST_ROOT_1_72_0}))
message("Boost 1.72 path found in environment: $ENV{BOOST_ROOT_1_72_0}")
SET (BOOST_ROOT "$ENV{BOOST_ROOT_1_72_0}")
SET (BOOST_INCLUDEDIR "$ENV{BOOST_ROOT_1_72_0}/boost/include")
SET (BOOST_LIBRARYDIR "$ENV{BOOST_ROOT_1_72_0}/lib")
SET (Boost_NO_BOOST_CMAKE ON)
message("BOOST_INCLUDEDIR: ${BOOST_INCLUDEDIR}")
message("BOOST_LIBRARYDIR: ${BOOST_LIBRARYDIR}")
endif()
# FIXME: do not let this get merged
message("SETTING BOOST TO C:/hostedtoolcache/windows/Boost/1.72.0/")
SET (BOOST_ROOT "C:/hostedtoolcache/windows/Boost/1.72.0/")
SET (BOOST_INCLUDEDIR "C:/hostedtoolcache/windows/Boost/1.72.0/include")
SET (BOOST_LIBRARYDIR "$C:/hostedtoolcache/windows/Boost/1.72.0/lib")
SET (Boost_NO_BOOST_CMAKE ON)
message("BOOST_INCLUDEDIR: ${BOOST_INCLUDEDIR}")
message("BOOST_LIBRARYDIR: ${BOOST_LIBRARYDIR}")
endif()
# filesystem not required for Python, as we link to prebuilt arrow shared library
find_package(Boost COMPONENTS filesystem)
Expand Down

0 comments on commit 03ef514

Please sign in to comment.