Skip to content

Commit b08f913

Browse files
UnaNancyOwenmvieth
authored andcommitted
Fix get the root directory path of Boost
In this commit, replace the method to get the root directory path based on Boost_DIR, because Boost_INCLUDE_DIR is empty.
1 parent ba3ea48 commit b08f913

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

cmake/pcl_all_in_one_installer.cmake

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ if(NOT BUILD_all_in_one_installer)
88
endif()
99

1010
# get root directory of each dependency libraries to be copied to PCL/3rdParty
11-
get_filename_component(BOOST_ROOT "${Boost_INCLUDE_DIR}" PATH) # ../Boost/include/boost-x_x/ -> ../Boost/include/
12-
get_filename_component(BOOST_ROOT "${BOOST_ROOT}" PATH) # ../Boost/include/ -> ../Boost/
13-
get_filename_component(QHULL_ROOT "${Qhull_DIR}" PATH) # ../qhull/lib/cmake/Qhull/ -> ../qhull/lib/cmake
14-
get_filename_component(QHULL_ROOT "${QHULL_ROOT}" PATH) # ../qhull/lib/cmake/ -> ../qhull/lib/
15-
get_filename_component(QHULL_ROOT "${QHULL_ROOT}" PATH) # ../qhull/lib/ -> ../qhull/
16-
get_filename_component(VTK_ROOT "${VTK_DIR}" PATH) # ../VTK/lib/cmake/vtk-x.x/ -> ../VTK/lib/cmake/
17-
get_filename_component(VTK_ROOT "${VTK_ROOT}" PATH) # ../VTK/lib/cmake/ -> ../VTK/lib/
18-
get_filename_component(VTK_ROOT "${VTK_ROOT}" PATH) # ../VTK/lib/ -> ../VTK/
11+
get_filename_component(BOOST_ROOT "${Boost_DIR}" PATH) # ../Boost/lib/cmake/Boost-X.XX.X/ -> ../Boost/lib/cmake/
12+
get_filename_component(BOOST_ROOT "${BOOST_ROOT}" PATH) # ../Boost/lib/cmake/ -> ../Boost/lib/
13+
get_filename_component(BOOST_ROOT "${BOOST_ROOT}" PATH) # ../Boost/lib/ -> ../Boost/
14+
get_filename_component(QHULL_ROOT "${Qhull_DIR}" PATH) # ../qhull/lib/cmake/Qhull/ -> ../qhull/lib/cmake
15+
get_filename_component(QHULL_ROOT "${QHULL_ROOT}" PATH) # ../qhull/lib/cmake/ -> ../qhull/lib/
16+
get_filename_component(QHULL_ROOT "${QHULL_ROOT}" PATH) # ../qhull/lib/ -> ../qhull/
17+
get_filename_component(VTK_ROOT "${VTK_DIR}" PATH) # ../VTK/lib/cmake/vtk-x.x/ -> ../VTK/lib/cmake/
18+
get_filename_component(VTK_ROOT "${VTK_ROOT}" PATH) # ../VTK/lib/cmake/ -> ../VTK/lib/
19+
get_filename_component(VTK_ROOT "${VTK_ROOT}" PATH) # ../VTK/lib/ -> ../VTK/
1920

2021
set(PCL_3RDPARTY_COMPONENTS)
2122
foreach(dep Boost Qhull FLANN VTK)

0 commit comments

Comments
 (0)