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.
This commit is contained in:
Maureen Helm 2020-06-09 18:28:09 -05:00 committed by Damien George
parent b1651ff092
commit 1ae861819d
1 changed files with 1 additions and 1 deletions

View File

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