aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/common.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake
index e826bee..02ef1a4 100644
--- a/cmake/common.cmake
+++ b/cmake/common.cmake
@@ -52,7 +52,8 @@ if(EXISTS ${OS_RELEASE_PATH})
else()
set(OSRELEASE "NOT COMPATIBLE !")
endif()
-
+elseif(${BUILD_ENV_SYSROOT} == $ENV{PKG_CONFIG_SYSROOT_DIR})
+ set(OSRELEASE "yocto-build")
else()
set(OSRELEASE "NOT COMPATIBLE ! Missing ${OS_RELEASE_PATH} file.")
endif()