From 683464626d5dca2647c6b1ce2a450fc918af570a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 1 Apr 2020 00:56:25 -0400 Subject: cmake: rename internal variable SHAREDIR to DATAROOTDIR This is how other build systems (e.g. autotools) see the variable, and cmake's own GNUInstallDirs defines the same. It more clearly describes what this setting does vs. the ambiguous "sharedir". --- doc/fr/CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/fr') diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt index 01bf40a16..080e556e0 100644 --- a/doc/fr/CMakeLists.txt +++ b/doc/fr/CMakeLists.txt @@ -72,7 +72,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_user.fr.html" ) add_custom_target(doc-user-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # plugin API reference add_custom_command( @@ -86,7 +86,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_plugin_api.fr.html" ) add_custom_target(doc-plugin-api-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # scripting guide add_custom_command( @@ -99,7 +99,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_scripting.fr.html" ) add_custom_target(doc-scripting-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # FAQ add_custom_command( @@ -112,7 +112,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_faq.fr.html" ) add_custom_target(doc-faq-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # quickstart add_custom_command( @@ -125,7 +125,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_quickstart.fr.html" ) add_custom_target(doc-quickstart-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # tester's guide add_custom_command( @@ -138,7 +138,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_tester.fr.html" ) add_custom_target(doc-tester-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # relay protocol add_custom_command( @@ -151,7 +151,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_relay_protocol.fr.html" ) add_custom_target(doc-relay-protocol-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # developer's guide add_custom_command( @@ -164,6 +164,6 @@ if(ENABLE_DOC) COMMENT "Building weechat_dev.fr.html" ) add_custom_target(doc-dev-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) endif() -- cgit v1.2.3