diff --git a/cmake/modules/FindHostTools.cmake b/cmake/modules/FindHostTools.cmake index f58ff2a2008..87aba695823 100644 --- a/cmake/modules/FindHostTools.cmake +++ b/cmake/modules/FindHostTools.cmake @@ -48,6 +48,10 @@ if(HostTools_FOUND) return() endif() +find_package(Deprecated COMPONENTS XCC_USE_CLANG CROSS_COMPILE) + +find_package(Zephyr-sdk 0.15) + # gperf is an optional dependency find_program(GPERF gperf) @@ -61,10 +65,6 @@ find_program(BOSSAC bossac) # in the mcuboot repository if that's present in some cases) find_program(IMGTOOL imgtool) -find_package(Deprecated COMPONENTS XCC_USE_CLANG CROSS_COMPILE) - -find_package(Zephyr-sdk 0.15) - # Pick host system's toolchain if we are targeting posix if("${ARCH}" STREQUAL "posix") if(NOT "${ZEPHYR_TOOLCHAIN_VARIANT}" STREQUAL "llvm")