diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-11-23 19:21:23 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:48 +0200 |
commit | 2fd7302005368f17b9d98a50126923a5eec9f784 (patch) | |
tree | bab847d55859dc1725448a244e635418c84734cf /cmake/cmake.d | |
parent | 799642211effc29e59002887796e649f27329e50 (diff) |
Compare to manual Project version if not from git
Change-Id: I7e83d2e587757edf5cfa22709ead85ce82f52dcc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d')
-rw-r--r-- | cmake/cmake.d/03-macros.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/cmake.d/03-macros.cmake b/cmake/cmake.d/03-macros.cmake index aef5498..2de89f3 100644 --- a/cmake/cmake.d/03-macros.cmake +++ b/cmake/cmake.d/03-macros.cmake @@ -543,6 +543,13 @@ macro(check_version) - Project version according AGL Git tag: ${GIT_PROJECT_VERSION}" ) endif() + 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} + - Project version according AGL Git tag: ${PROJECT_VERSION}" + ) + endif() else() message(STATUS "${Yellow} Your git project repo doesn't have any version tags nor hosted by AGL gerrit infrastructure. Can't compare version between project and app-templates ${APP_TEMPLATES_VERSION} ${ColourReset}") endif() |