aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-05 16:48:19 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-05 15:15:55 +0000
commiteec9f0771c7574b3969831952cb5b6f54c576856 (patch)
tree08fd8b58cd2a9264695ec659f014f6d2626f1d52
parent291aa4ef053ba7564759d3a0ba3c027e1ede0eff (diff)
Fix: SYSROOT location detection... Wrong test.
Change-Id: I8c783cf3bc966b2bec54cab98de97f1e47d3b54c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--cmake/common.cmake2
1 files changed, 1 insertions, 1 deletions
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.")