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})