summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-06-27 14:48:31 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2019-06-27 14:48:31 +0200
commit5a26df78726408a9df55725af40c0a731021b687 (patch)
tree192a71fb014d4a682ac73abc78345531fd7e0c6e
parent7593f0f6c5eb54e4514ed61d6c06125bfc28ccfd (diff)
Fix wrong variable tested setting the PROJECT_HOMEPAGE_URL Bug-AGL: SPEC-2549 Change-Id: I53448d4ddd4c6b148997e140c0f421ddd6dfe182 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-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})