mirror of
https://review.coreboot.org/chrome-ec.git
synced 2024-09-09 14:22:41 +02:00
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 <jrosenth@chromium.org> Change-Id: I7eb1004060b0ba51d8c336dfe507ad747abe80ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2591627 Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
88530597d9
commit
30ba1a28dc
5 changed files with 5 additions and 5 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
set(BOARD native_posix)
|
||||
project(base32)
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(base32)
|
||||
|
||||
# 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
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
set(BOARD native_posix)
|
||||
project(tasks)
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(tasks)
|
||||
|
||||
# We need to include the EC include directory and this local test directory
|
||||
# for the task defines
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
set(BOARD native_posix)
|
||||
project(base32)
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(base32)
|
||||
|
||||
# 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
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
set(BOARD native_posix)
|
||||
project(tasks)
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(tasks)
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue