diff options
author | Brad King <brad.king@kitware.com> | 2018-04-24 15:01:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-04-24 15:02:28 (GMT) |
commit | c74b9618d5efc09af846d5ed54bd6e88448a5e2f (patch) | |
tree | 05054530b680ea27988598f64feaea64259e46dd /Modules | |
parent | 6c942ec33862968bb4a2c14651703a099540f22e (diff) | |
parent | 30c8c9f55de8687815abe613d91ee1d63bb9e4d5 (diff) | |
download | CMake-c74b9618d5efc09af846d5ed54bd6e88448a5e2f.zip CMake-c74b9618d5efc09af846d5ed54bd6e88448a5e2f.tar.gz CMake-c74b9618d5efc09af846d5ed54bd6e88448a5e2f.tar.bz2 |
Merge topic 'cpack-doc-defaults'
30c8c9f55d CPack: Add CPACK_PACKAGE_HOMEPAGE_URL setting
c9fa8f9442 CPack: Fix documented CPACK_PACKAGE_DESCRIPTION_SUMMARY default
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1998
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPack.cmake | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index 9216fc9..3ff8be6 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -100,11 +100,19 @@ # # Short description of the project (only a few words). Default value is:: # -# ${PROJECT_DESCRIPTION} +# ${CMAKE_PROJECT_DESCRIPTION} # # if DESCRIPTION has given to the project() call or # CMake generated string with PROJECT_NAME otherwise. # +# .. variable:: CPACK_PACKAGE_HOMEPAGE_URL +# +# Project homepage URL. Default value is:: +# +# ${CMAKE_PROJECT_HOMEPAGE_URL} +# +# if HOMEPAGE_URL has given to the project(). +# # .. variable:: CPACK_PACKAGE_FILE_NAME # # The name of the package file to generate, not including the @@ -373,6 +381,10 @@ else() _cpack_set_default(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${CMAKE_PROJECT_NAME} built using CMake") endif() +if(CMAKE_PROJECT_HOMEPAGE_URL) + _cpack_set_default(CPACK_PACKAGE_HOMEPAGE_URL + "${CMAKE_PROJECT_HOMEPAGE_URL}") +endif() _cpack_set_default(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_ROOT}/Templates/CPack.GenericDescription.txt") |