summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaureen Helm <maureen.helm@nxp.com>2020-06-09 18:28:09 -0500
committerDamien George <damien.p.george@gmail.com>2020-06-12 10:25:16 +1000
commit1ae861819dbe8a57cdfda882b093d8d564d8f1c9 (patch)
tree7c0e09592f78cc8a05a89304a4e8261d13d1a308
parentb1651ff092e86099b39cba6fe5abfb3ad7514daf (diff)
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.
-rw-r--r--ports/zephyr/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/zephyr/CMakeLists.txt b/ports/zephyr/CMakeLists.txt
index 2cc19a93f..50cd031d4 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)