mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 01:28:50 -05:00
Merge topic 'cpack-doc-defaults'
30c8c9f55dCPack: Add CPACK_PACKAGE_HOMEPAGE_URL settingc9fa8f9442CPack: Fix documented CPACK_PACKAGE_DESCRIPTION_SUMMARY default Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1998
This commit is contained in:
+13
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user