diff -up ./PCLConfig.cmake.in.fedora ./PCLConfig.cmake.in --- ./PCLConfig.cmake.in.fedora 2018-02-09 12:59:25.329878911 -0500 +++ ./PCLConfig.cmake.in 2018-02-09 13:01:36.772813799 -0500 @@ -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 - get_filename_component(PCL_ROOT "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE) + 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