summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cmake/cmake.d/02-variables.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmake/cmake.d/02-variables.cmake b/src/cmake/cmake.d/02-variables.cmake
index eb4bec4..be22d72 100644
--- a/src/cmake/cmake.d/02-variables.cmake
+++ b/src/cmake/cmake.d/02-variables.cmake
@@ -94,14 +94,14 @@ if(NOT PROJECT_DESCRIPTION)
set(PROJECT_DESCRIPTION "-")
endif()
-if(NOT HOMEPAGE_URL)
+if(NOT PROJECT_URL)
message(WARNING "${Red}No homepage url found. Please set a PROJECT_URL cmake variable in your config.cmake.")
endif()
# Release additionnals informations isn't supported so setting project
# attributes then add the dirty flag if git repo not sync'ed
if(CMAKE_VERSION VERSION_GREATER 3.11)
- if(HOMEPAGE_URL)
+ if(PROJECT_URL)
project(${PROJECT_NAME} VERSION ${PROJECT_VERSION} LANGUAGES ${PROJECT_LANGUAGES} DESCRIPTION ${PROJECT_DESCRIPTION} HOMEPAGE_URL ${PROJECT_URL})
else()
project(${PROJECT_NAME} VERSION ${PROJECT_VERSION} LANGUAGES ${PROJECT_LANGUAGES} DESCRIPTION ${PROJECT_DESCRIPTION})