1# SPDX-License-Identifier: Apache-2.0 2# 3# Copyright (c) 2022, Nordic Semiconductor ASA 4 5# This is copied from the much bigger 6# zephyr/cmake/modules/FindZephyr-sdk.cmake. 7 8find_package(Zephyr-sdk ${Zephyr-sdk_FIND_VERSION} REQUIRED QUIET CONFIG PATHS 9 /opt/toolchains # in zephyr-build but not in zephyr.git, go figure 10 /usr 11 /usr/local 12 /opt 13 $ENV{HOME} 14 $ENV{HOME}/.local 15 $ENV{HOME}/.local/opt 16 $ENV{HOME}/bin) 17 18if(Zephyr-sdk_FOUND) 19 execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${ZEPHYR_SDK_INSTALL_DIR}") 20else() 21 message(FATAL_ERROR "Zephyr SDK not found") 22endif() 23