You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
684 B

cmake_policy(SET CMP0048 NEW)
project(ProjectHomepageTest VERSION 1.0.0 HOMEPAGE_URL "http://example.com" LANGUAGES)
if(NOT PROJECT_HOMEPAGE_URL)
message(FATAL_ERROR "PROJECT_HOMEPAGE_URL expected to be set")
endif()
if(NOT CMAKE_PROJECT_HOMEPAGE_URL)
message(FATAL_ERROR "CMAKE_PROJECT_HOMEPAGE_URL expected to be set")
endif()
if(NOT ProjectHomepageTest_HOMEPAGE_URL)
message(FATAL_ERROR "ProjectHomepageTest_HOMEPAGE_URL expected to be set")
endif()
message(STATUS "PROJECT_HOMEPAGE_URL=${PROJECT_HOMEPAGE_URL}")
message(STATUS "CMAKE_PROJECT_HOMEPAGE_URL=${CMAKE_PROJECT_HOMEPAGE_URL}")
message(STATUS "ProjectHomepageTest_HOMEPAGE_URL=${ProjectHomepageTest_HOMEPAGE_URL}")