Commit 30c8c9f5 authored by Alex Turbov's avatar Alex Turbov Committed by Brad King

CPack: Add CPACK_PACKAGE_HOMEPAGE_URL setting

Initialize it from `CMAKE_PROJECT_HOMEPAGE_URL`.
parent c9fa8f94
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment