mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 20:21:41 -06:00
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
12 lines
271 B
CMake
12 lines
271 B
CMake
project(
|
|
MetaInfoTest
|
|
VERSION 1.2.3
|
|
DESCRIPTION "This is going to be a summary"
|
|
HOMEPAGE_URL "https://meta.test.info"
|
|
)
|
|
install(FILES CMakeLists.txt DESTINATION foo COMPONENT test)
|
|
|
|
if(PACKAGING_TYPE STREQUAL "COMPONENT")
|
|
set(CPACK_COMPONENTS_ALL test)
|
|
endif()
|