diff --git a/cmake/cmake_modules-extras.cmake.installspace.in b/cmake/cmake_modules-extras.cmake.installspace.in index a4cd265..98d180a 100644 --- a/cmake/cmake_modules-extras.cmake.installspace.in +++ b/cmake/cmake_modules-extras.cmake.installspace.in @@ -1,2 +1,2 @@ # Prepend the installed cmake modules to the cmake module path -list(INSERT CMAKE_MODULE_PATH 0 @CMAKE_INSTALL_PREFIX@/@CATKIN_PACKAGE_SHARE_DESTINATION@/cmake/Modules) +list(INSERT CMAKE_MODULE_PATH 0 ${cmake_modules_DIR}/../../../@CATKIN_PACKAGE_SHARE_DESTINATION@/cmake/Modules)