2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-12-17 00:13:54 +08:00
|
|
|
######################################
|
|
|
|
# The use of this file is deprecated #
|
|
|
|
######################################
|
|
|
|
|
|
|
|
# To build a Zephyr application it must start with one of those lines:
|
2020-03-13 06:34:12 +08:00
|
|
|
#
|
|
|
|
# find_package(Zephyr)
|
2020-05-30 04:17:26 +08:00
|
|
|
# find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2020-03-13 06:34:12 +08:00
|
|
|
#
|
2020-05-30 04:17:26 +08:00
|
|
|
# The `REQUIRED HINTS $ENV{ZEPHYR_BASE}` variant is required for any application
|
|
|
|
# inside the Zephyr repository.
|
2017-10-27 21:43:34 +08:00
|
|
|
#
|
2021-12-17 00:13:54 +08:00
|
|
|
# Loading of this file directly is deprecated and only kept for backward compatibility.
|
2018-11-12 22:57:19 +08:00
|
|
|
|
2022-03-01 17:32:23 +08:00
|
|
|
if(NOT DEFINED Zephyr_DIR)
|
|
|
|
# When `find_package(Zephyr)` is used then `Zephyr_DIR` is defined, else
|
|
|
|
# old style inclusion is used. Warning is only printed in first invocation.
|
|
|
|
message(WARNING "Loading of Zephyr boilerplate.cmake directly is deprecated, "
|
|
|
|
"please use 'find_package(Zephyr)'"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
find_package(Zephyr REQUIRED PATHS ${CMAKE_CURRENT_LIST_DIR}/../.. NO_DEFAULT_PATH)
|