Fix PCL_ROOT path
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Fri, 18 Aug 2017 09:30:38 +0000 (11:30 +0200)
committerJochen Sprickerhof <jspricke@debian.org>
Tue, 18 Aug 2020 18:22:29 +0000 (19:22 +0100)
Gbp-Pq: Name 0001-Fix-PCL_ROOT-path.patch

PCLConfig.cmake.in

index 349ad7c4c5eb7b5d7127b2e47b9b4a97301df150..80c29e62ac7d49a209d580cb7563870133575da5 100644 (file)
@@ -398,7 +398,7 @@ if(WIN32 AND NOT MINGW)
   get_filename_component(PCL_ROOT "${PCL_DIR}" PATH)
 else()
 # PCLConfig.cmake is installed to PCL_ROOT/share/pcl-x.y
-  get_filename_component(PCL_ROOT "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
+  get_filename_component(PCL_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../../.." ABSOLUTE)
 endif()
 
 # check whether PCLConfig.cmake is found into a PCL installation or in a build tree