# q file -v /usr/share/apps/cmake/modules/FindEigen.cmake kde-base/kdelibs-4.9.0 (/usr/share/apps/cmake/modules/FindEigen.cmake) In an own project I get: CMake Error at CMakeLists.txt:17 (find_package): By not providing "FindEigen.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Eigen", but CMake did not find one. I suggest that cmake files be installed into the standard cmake directory (which appears to be /usr/share/cmake) instead, so they can be used by other projects as well. Reproducible: Always
I believe upstream's expectation is that find_package(KDE4) (which adds that directory to CMAKE_MODULE_PATH) will always be called prior to using KDE-provided modules. Do you have a different use case?
Yes, I simply want to use Eigen, without using KDE. Hence it would be nice if there was a globally installed CMake module.
(In reply to comment #2) > Yes, I simply want to use Eigen, without using KDE. Hence it would be nice > if there was a globally installed CMake module. You have two options: 1. find_package(KDE4) 2. Include the search module in your project. We wont mix the installations of the cmake and kdelibs.
You need to include all 3rd party FindXXX.cmake files in your own project. Only modules provided officially by CMake can be implicitly depended on. If you don't care for portability and just want to get it found, pass -DCMAKE_MODULE_PATH=/usr/share/apps/cmake/modules to cmake.