diff -up ./PCLConfig.cmake.in.fedora ./PCLConfig.cmake.in --- ./PCLConfig.cmake.in.fedora 2020-05-29 17:48:55.884924391 -0400 +++ ./PCLConfig.cmake.in 2020-05-29 17:50:25.211139677 -0400 @@ -398,7 +398,7 @@ if(WIN32 AND NOT MINGW) endif() else() # 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() # check whether PCLConfig.cmake is found into a PCL installation or in a build tree