summaryrefslogtreecommitdiffstats
path: root/Modules/CPack.cmake
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2018-04-17 06:08:59 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-23 15:08:21 (GMT)
commit30c8c9f55de8687815abe613d91ee1d63bb9e4d5 (patch)
tree13c7d69cbd9ca839d25036c718dd39a80fab7c20 /Modules/CPack.cmake
parentc9fa8f94426166b591f24ad6a36a4ce97fc0cc89 (diff)
downloadCMake-30c8c9f55de8687815abe613d91ee1d63bb9e4d5.zip
CMake-30c8c9f55de8687815abe613d91ee1d63bb9e4d5.tar.gz
CMake-30c8c9f55de8687815abe613d91ee1d63bb9e4d5.tar.bz2
CPack: Add CPACK_PACKAGE_HOMEPAGE_URL setting
Initialize it from `CMAKE_PROJECT_HOMEPAGE_URL`.
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r--Modules/CPack.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake
index 4426c59..3ff8be6 100644
--- a/Modules/CPack.cmake
+++ b/Modules/CPack.cmake
@@ -105,6 +105,14 @@
# 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")