summaryrefslogtreecommitdiffstats
path: root/Modules/Internal/CPack/CPackRPM.cmake
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-11-10 12:20:29 (GMT)
committerBrad King <brad.king@kitware.com>2019-12-09 22:06:10 (GMT)
commit3476dbe6d76aee7409796e3dfd1da6a0c15e7b21 (patch)
tree54603d78864a7db7802090b5a02235a26a7554a9 /Modules/Internal/CPack/CPackRPM.cmake
parenta9c09599002baa27bdf4f98664829a92ba529240 (diff)
downloadCMake-3476dbe6d76aee7409796e3dfd1da6a0c15e7b21.zip
CMake-3476dbe6d76aee7409796e3dfd1da6a0c15e7b21.tar.gz
CMake-3476dbe6d76aee7409796e3dfd1da6a0c15e7b21.tar.bz2
CPack: CMAKE_PROJECT_HOMEPAGE_URL -> CPACK_PACKAGE_HOMEPAGE_URL
At CPack running time the `CMAKE_PROJECT_HOMEPAGE_URL` variable is not set. Internal CPack modules (e.g. CPackDEB, CPackRPM, CPackFreeBSD) should use `CPACK_PACKAGE_HOMEPAGE_URL` instead, which is available after inclusion of `CPack.cmake` into `CMakeLists.txt`. Closes: #19607
Diffstat (limited to 'Modules/Internal/CPack/CPackRPM.cmake')
-rw-r--r--Modules/Internal/CPack/CPackRPM.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Internal/CPack/CPackRPM.cmake b/Modules/Internal/CPack/CPackRPM.cmake
index ffb24e2..3485e7d 100644
--- a/Modules/Internal/CPack/CPackRPM.cmake
+++ b/Modules/Internal/CPack/CPackRPM.cmake
@@ -844,8 +844,8 @@ function(cpack_rpm_generate_package)
endif()
endif()
- if(NOT CPACK_RPM_PACKAGE_URL AND CMAKE_PROJECT_HOMEPAGE_URL)
- set(CPACK_RPM_PACKAGE_URL "${CMAKE_PROJECT_HOMEPAGE_URL}")
+ if(NOT CPACK_RPM_PACKAGE_URL AND CPACK_PACKAGE_HOMEPAGE_URL)
+ set(CPACK_RPM_PACKAGE_URL "${CPACK_PACKAGE_HOMEPAGE_URL}")
endif()
# CPACK_RPM_PACKAGE_NAME (mandatory)