xo-cmake: bugfix: cmake_module_path must-> CMAKE_INSTALL_DATADIR !

This commit is contained in:
Roland Conybeare 2024-04-25 13:58:38 -04:00
commit d3b12a97e2
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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