diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2020-04-01 00:56:25 -0400 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-12 10:16:41 +0200 |
commit | 683464626d5dca2647c6b1ce2a450fc918af570a (patch) | |
tree | 377c73e422d4bf6a7fb6a54c0b6d78c87beed4f3 /doc/en/CMakeLists.txt | |
parent | 8bdd540df72c3a609e9d51a5c52cf2d65f96d79b (diff) | |
download | weechat-683464626d5dca2647c6b1ce2a450fc918af570a.zip |
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".
Diffstat (limited to 'doc/en/CMakeLists.txt')
-rw-r--r-- | doc/en/CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt index 42ee60c56..f6050857d 100644 --- a/doc/en/CMakeLists.txt +++ b/doc/en/CMakeLists.txt @@ -72,7 +72,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_user.en.html" ) add_custom_target(doc-user-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # plugin API reference add_custom_command( @@ -86,7 +86,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_plugin_api.en.html" ) add_custom_target(doc-plugin-api-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # scripting guide add_custom_command( @@ -99,7 +99,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_scripting.en.html" ) add_custom_target(doc-scripting-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # FAQ add_custom_command( @@ -112,7 +112,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_faq.en.html" ) add_custom_target(doc-faq-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # quickstart add_custom_command( @@ -125,7 +125,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_quickstart.en.html" ) add_custom_target(doc-quickstart-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # tester's guide add_custom_command( @@ -138,7 +138,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_tester.en.html" ) add_custom_target(doc-tester-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # relay protocol add_custom_command( @@ -151,7 +151,7 @@ if(ENABLE_DOC) COMMENT "Building weechat_relay_protocol.en.html" ) add_custom_target(doc-relay-protocol-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) # developer's guide add_custom_command( @@ -164,6 +164,6 @@ if(ENABLE_DOC) COMMENT "Building weechat_dev.en.html" ) add_custom_target(doc-dev-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}) endif() |