Hard-code PCL_ROOT
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 31 Aug 2024 14:48:36 +0000 (16:48 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 31 Aug 2024 14:48:36 +0000 (16:48 +0200)
Closes: #1080061
debian/patches/0001-Fix-PCL_ROOT-path.patch

index 14d4886fdf45bec57339d53a25d11461e953d532..9cfa7b7fba4aafb82a6c26f59fbb2584bcedb145 100644 (file)
@@ -7,7 +7,7 @@ Subject: Fix PCL_ROOT path
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/PCLConfig.cmake.in b/PCLConfig.cmake.in
-index cf21c44..2eafd3c 100644
+index cf21c44..e664080 100644
 --- a/PCLConfig.cmake.in
 +++ b/PCLConfig.cmake.in
 @@ -411,7 +411,7 @@ if(WIN32 AND NOT MINGW)
@@ -15,7 +15,7 @@ index cf21c44..2eafd3c 100644
  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)
++  set(PCL_ROOT "/usr")
  endif()
  
  # check whether PCLConfig.cmake is found into a PCL installation or in a build tree