Fix: SYSROOT location detection... Wrong test. 33/15033/2
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 5 Jul 2018 14:48:19 +0000 (16:48 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 5 Jul 2018 15:15:55 +0000 (15:15 +0000)
Change-Id: I8c783cf3bc966b2bec54cab98de97f1e47d3b54c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/common.cmake

index 65285a1..e764d34 100644 (file)
@@ -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.")