aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsabella Muerte <63051+slurps-mad-rips@users.noreply.github.com>2019-10-17 21:44:48 -0700
committerIsabella Muerte <63051+slurps-mad-rips@users.noreply.github.com>2019-10-17 21:44:48 -0700
commit99ad261611ff0c3f186d6f9b414ba019f52e028e (patch)
treee882edcab0ec322a8ca81c18b70778fe3eed9c04
parent6949232bbd6865e6d0527cdcc03fb5da2151447e (diff)
downloadpugixml-99ad261611ff0c3f186d6f9b414ba019f52e028e.zip
pugixml-99ad261611ff0c3f186d6f9b414ba019f52e028e.tar.gz
pugixml-99ad261611ff0c3f186d6f9b414ba019f52e028e.tar.bz2
:bug: Fix incorrect installation location for exported CMake targets
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 668f220..e5b49ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,7 +149,7 @@ target_compile_options(pugixml
configure_package_config_file(
"${PROJECT_SOURCE_DIR}/scripts/pugixml-config.cmake.in"
"${PROJECT_BINARY_DIR}/pugixml-config.cmake"
- INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}
NO_CHECK_REQUIRED_COMPONENTS_MACRO
NO_SET_AND_CHECK_MACRO)
@@ -168,7 +168,7 @@ install(TARGETS ${install-targets}
install(EXPORT pugixml-targets
NAMESPACE pugixml::
- DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/pugixml)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pugixml)
install(FILES
"${PROJECT_BINARY_DIR}/pugixml-config-version.cmake"