Skip to content
Snippets Groups Projects
Commit 99ad2616 authored by Isabella Muerte's avatar Isabella Muerte
Browse files

:bug: Fix incorrect installation location for exported CMake targets

parent 6949232b
No related branches found
No related tags found
Loading
...@@ -149,7 +149,7 @@ target_compile_options(pugixml ...@@ -149,7 +149,7 @@ target_compile_options(pugixml
configure_package_config_file( configure_package_config_file(
"${PROJECT_SOURCE_DIR}/scripts/pugixml-config.cmake.in" "${PROJECT_SOURCE_DIR}/scripts/pugixml-config.cmake.in"
"${PROJECT_BINARY_DIR}/pugixml-config.cmake" "${PROJECT_BINARY_DIR}/pugixml-config.cmake"
INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR} INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}
NO_CHECK_REQUIRED_COMPONENTS_MACRO NO_CHECK_REQUIRED_COMPONENTS_MACRO
NO_SET_AND_CHECK_MACRO) NO_SET_AND_CHECK_MACRO)
...@@ -168,7 +168,7 @@ install(TARGETS ${install-targets} ...@@ -168,7 +168,7 @@ install(TARGETS ${install-targets}
install(EXPORT pugixml-targets install(EXPORT pugixml-targets
NAMESPACE pugixml:: NAMESPACE pugixml::
DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/pugixml) DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pugixml)
install(FILES install(FILES
"${PROJECT_BINARY_DIR}/pugixml-config-version.cmake" "${PROJECT_BINARY_DIR}/pugixml-config-version.cmake"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment