From: Romain Forlot Date: Thu, 5 Jul 2018 14:48:19 +0000 (+0200) Subject: Fix: SYSROOT location detection... Wrong test. X-Git-Tag: 5.99.2~7 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=eec9f0771c7574b3969831952cb5b6f54c576856;p=apps%2Fapp-templates.git Fix: SYSROOT location detection... Wrong test. Change-Id: I8c783cf3bc966b2bec54cab98de97f1e47d3b54c Signed-off-by: Romain Forlot --- diff --git a/cmake/common.cmake b/cmake/common.cmake index 65285a1..e764d34 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -52,7 +52,7 @@ if(EXISTS ${OS_RELEASE_PATH}) else() set(OSRELEASE "NOT COMPATIBLE !") endif() -elseif(${BUILD_ENV_SYSROOT} == $ENV{PKG_CONFIG_SYSROOT_DIR}) +elseif("${BUILD_ENV_SYSROOT}" STREQUAL "$ENV{PKG_CONFIG_SYSROOT_DIR}") set(OSRELEASE "yocto-build") else() set(OSRELEASE "NOT COMPATIBLE ! Missing ${OS_RELEASE_PATH} file.")