diff --git a/CMakeLists.txt b/CMakeLists.txt index 516c8c84..075246d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ install( "cmake/xo_macros/xo_cxx.cmake" "cmake/xo_macros/code-coverage.cmake" PERMISSIONS OWNER_READ GROUP_READ WORLD_READ - DESTINATION share/cmake/xo_macros + DESTINATION ${CMAKE_INSTALL_DATADIR}/xo_macros ) install( diff --git a/bin/xo-cmake-config.in b/bin/xo-cmake-config.in index aa8a4d7b..81ebce45 100755 --- a/bin/xo-cmake-config.in +++ b/bin/xo-cmake-config.in @@ -70,5 +70,5 @@ elif [[ $cmd == 'lcov_harness_exe' ]]; then elif [[ $cmd == 'gen_ccov_template' ]]; then echo -n @CMAKE_INSTALL_FULL_DATADIR@/xo-macros/gen-ccov.in elif [[ $cmd == 'cmake_module_path' ]]; then - echo -n @CMAKE_MODULE_PATH@ + echo -n @CMAKE_INSTALL_DATADIR@ fi