From e4e765300db890941193539fecf66dc9e5fc5160 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 23 Aug 2021 09:08:48 -0400 Subject: [PATCH] more bugfixes --- cmake/Q7SCrossCompileConfig.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/Q7SCrossCompileConfig.cmake b/cmake/Q7SCrossCompileConfig.cmake index 57f59cbd..d4d05f4e 100644 --- a/cmake/Q7SCrossCompileConfig.cmake +++ b/cmake/Q7SCrossCompileConfig.cmake @@ -1,3 +1,6 @@ +if(DEFINED ENV{Q7S_SYSROOT}) + set(ENV{Q7S_ROOTFS} $ENV{Q7S_SYSROOT}) +endif() # CROSS_COMPILE also needs to be set accordingly or passed to the CMake command if(NOT DEFINED ENV{Q7S_ROOTFS}) # Sysroot has not been cached yet and was not set in environment either @@ -7,7 +10,7 @@ if(NOT DEFINED ENV{Q7S_ROOTFS}) ) endif() else() - set(SYSROOT_PATH "$ENV{Q7S_SYSROOT}" CACHE PATH "Q7S root filesystem path") + set(SYSROOT_PATH "$ENV{Q7S_ROOTFS}" CACHE PATH "Q7S root filesystem path") endif() if(NOT DEFINED ENV{CROSS_COMPILE})