Skip to content

Commit

Permalink
Fix issue with finding pcl deployed out of path (#1923)
Browse files Browse the repository at this point in the history
* fix issue with finding pcl deployed out of path

* The path is set relative to PCLConfig.cmake
  • Loading branch information
SergioRAgostinho authored and jspricke committed Jul 4, 2017
1 parent 6073b5a commit bb3f6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PCLConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ if(WIN32 AND NOT MINGW)
get_filename_component(PCL_ROOT "${PCL_DIR}" PATH)
else(WIN32 AND NOT MINGW)
# PCLConfig.cmake is installed to PCL_ROOT/share/pcl-x.y
set(PCL_ROOT "@CMAKE_INSTALL_PREFIX@")
get_filename_component(PCL_ROOT "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
endif(WIN32 AND NOT MINGW)

# check whether PCLConfig.cmake is found into a PCL installation or in a build tree
Expand Down

0 comments on commit bb3f6b4

Please sign in to comment.