summaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d/03-macros.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-11-23 19:41:55 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:48 +0200
commita1ee2ce27942c8ef3d15d6d52797e51908578e9d (patch)
tree261bf7e4ca1f3f0d1b5afaaea441cfe0d3242849 /cmake/cmake.d/03-macros.cmake
parentfb7bfa4844fbaa7a275464e09111c479583c3e7d (diff)
Fix variables checking.
Change-Id: Ifbe95bbcb7f192ec9e84c26a73dc260926360b37 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d/03-macros.cmake')
-rw-r--r--cmake/cmake.d/03-macros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/cmake.d/03-macros.cmake b/cmake/cmake.d/03-macros.cmake
index 2de89f3..207e85a 100644
--- a/cmake/cmake.d/03-macros.cmake
+++ b/cmake/cmake.d/03-macros.cmake
@@ -536,14 +536,14 @@ macro(project_closing_msg)
endmacro()
macro(check_version)
- if(${GIT_PROJECT_VERSION})
+ if(GIT_PROJECT_VERSION)
if(${GIT_PROJECT_VERSION} VERSION_GREATER ${APP_TEMPLATES_VERSION})
message(STATUS "${Yellow}.. Your app-templates submodule version seems outdated. You should update it with 'git submodule update --remote ${PROJECT_APP_TEMPLATES_DIR}'.
- App-templates version: ${APP_TEMPLATES_VERSION}
- Project version according AGL Git tag: ${GIT_PROJECT_VERSION}"
)
endif()
- elseif(${PROJECT_VERSION})
+ elseif(PROJECT_VERSION)
if(${PROJECT_VERSION} VERSION_GREATER ${APP_TEMPLATES_VERSION})
message(STATUS "${Yellow}.. Your app-templates submodule version seems outdated. You should update it with 'git submodule update --remote ${PROJECT_APP_TEMPLATES_DIR}'.
- App-templates version: ${APP_TEMPLATES_VERSION}