We can install in /usr/lib/cmake/cmake-extras, but that is not backward compatible.
cmake looks in CMAKE_MODULE_PATH for additional modules but, by default, CMAKE_MODULE_PATH is empty, so the extra modules are not found. The only place cmake looks at by default appears to be ${CMAKE_ROOT}/Modules, unfortunately.
We can make this change, but all projects using cmake-extras will have to set CMAKE_MODULE_PATH explicitly:
We can install in /usr/lib/ cmake/cmake- extras, but that is not backward compatible.
cmake looks in CMAKE_MODULE_PATH for additional modules but, by default, CMAKE_MODULE_PATH is empty, so the extra modules are not found. The only place cmake looks at by default appears to be ${CMAKE_ ROOT}/Modules, unfortunately.
We can make this change, but all projects using cmake-extras will have to set CMAKE_MODULE_PATH explicitly:
set(CMAKE_ MODULE_ PATH /usr/lib/ cmake/cmake- extras)