From 1ae861819dbe8a57cdfda882b093d8d564d8f1c9 Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Tue, 9 Jun 2020 18:28:09 -0500 Subject: [PATCH] zephyr: Use cmake find_package to locate zephyr. Updates the zephyr port to use the ZEPHYR_BASE environment variable only to locate the zephyr cmake package, allowing cmake to cache the variable. --- ports/zephyr/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/zephyr/CMakeLists.txt b/ports/zephyr/CMakeLists.txt index 2cc19a93f1..50cd031d4d 100644 --- a/ports/zephyr/CMakeLists.txt +++ b/ports/zephyr/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.13.1) -include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(NONE) target_sources(app PRIVATE src/zephyr_start.c src/zephyr_getchar.c)