--- CMakeLists.txt.orig +++ CMakeLists.txt @@ -177,6 +177,9 @@ ######################################################################## # Install cmake search helper for this library ######################################################################## -install(FILES cmake/Modules/mapperConfig.cmake - DESTINATION lib${LIB_SUFFIX}/cmake/mapper +if(NOT CMAKE_MODULES_DIR) + set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake) +endif() +install(FILES cmake/Modules/mapperConfig.cmake + DESTINATION ${CMAKE_MODULES_DIR}/mapper )