From 6dbfb46b429dd9ab9191230d7f38c46ff80f2609 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 13 Nov 2014 10:50:53 +0100 Subject: [PATCH] Correct PCL_ROOT in PCLConfig.cmake Taken from http://pkgs.fedoraproject.org/cgit/pcl.git/tree/pcl-1.7.1-fedora.patch --- PCLConfig.cmake.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PCLConfig.cmake.in b/PCLConfig.cmake.in index a889b45abfc..31978dc5f8a 100644 --- a/PCLConfig.cmake.in +++ b/PCLConfig.cmake.in @@ -721,8 +721,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 - get_filename_component(PCL_ROOT "${PCL_DIR}" PATH) - get_filename_component(PCL_ROOT "${PCL_ROOT}" PATH) + set(PCL_ROOT "@CMAKE_INSTALL_PREFIX@") endif(WIN32 AND NOT MINGW) # check whether PCLConfig.cmake is found into a PCL installation or in a build tree