From: Romain Forlot Date: Thu, 23 Nov 2017 18:41:55 +0000 (+0100) Subject: Fix variables checking. X-Git-Tag: 4.99.3~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=818a2bc478af096dc2883ae9d124a0fc5c17947b;p=staging%2Fxdg-launcher.git Fix variables checking. Change-Id: Ifbe95bbcb7f192ec9e84c26a73dc260926360b37 Signed-off-by: Romain Forlot --- 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}