aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2019-10-17 22:07:54 -0700
committerGitHub <noreply@github.com>2019-10-17 22:07:54 -0700
commitfe5460c6dcd6b1e6fc12ec5de5f1f86b399da887 (patch)
treee882edcab0ec322a8ca81c18b70778fe3eed9c04
parent40be014e481c4feae5bab1fd29d38004cc2c2488 (diff)
parent99ad261611ff0c3f186d6f9b414ba019f52e028e (diff)
downloadpugixml-fe5460c6dcd6b1e6fc12ec5de5f1f86b399da887.zip
pugixml-fe5460c6dcd6b1e6fc12ec5de5f1f86b399da887.tar.gz
pugixml-fe5460c6dcd6b1e6fc12ec5de5f1f86b399da887.tar.bz2
Merge pull request #305 from slurps-mad-rips/modern-cmake
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"