From 30ba1a28dc305aa31411695832a47e24c5a864b3 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Mon, 14 Dec 2020 16:30:26 -0700 Subject: zephyr: put project(...) after find_package(Zephyr) When including the Zephyr source, this will change the values of CMAKE_C_COMPILER and CMAKE_CXX_COMPILER, causing cmake to execute again having forgotten about some of the command (since these are cached variables). BUG=b:175248887 BRANCH=none TEST=zmake testall, no "cached variables have changed" from cmake Signed-off-by: Jack Rosenthal Change-Id: I7eb1004060b0ba51d8c336dfe507ad747abe80ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2591627 Reviewed-by: Simon Glass --- zephyr/test/hooks/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zephyr/test/hooks') diff --git a/zephyr/test/hooks/CMakeLists.txt b/zephyr/test/hooks/CMakeLists.txt index 1347a8f75f..e44ebfe674 100644 --- a/zephyr/test/hooks/CMakeLists.txt +++ b/zephyr/test/hooks/CMakeLists.txt @@ -4,8 +4,8 @@ cmake_minimum_required(VERSION 3.13.1) set(BOARD native_posix) -project(hooks) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(hooks) # Need to ensure that we are including only zephyr definitions in include files # We cannot set these via kconfig, since this unit test does not bring in the -- cgit v1.2.1