1cccc8a8fe
Move to CMake 3.20.0. At the Toolchain WG it was decided to move to CMake 3.20.0. The main reason for increasing CMake version is better toolchain support. Better toolchain support is added in the following CMake versions: - armclang, CMake 3.15 - Intel oneAPI, CMake 3.20 - IAR, CMake 3.15 and 3.20 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
20 lines
501 B
CMake
20 lines
501 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(philosophers)
|
|
|
|
if(DEFINED DEBUG_PRINTF)
|
|
zephyr_compile_definitions(DEBUG_PRINTF=${DEBUG_PRINTF})
|
|
endif()
|
|
if(DEFINED SAME_PRIO)
|
|
zephyr_compile_definitions(SAME_PRIO)
|
|
endif()
|
|
if(DEFINED STATIC_OBJS)
|
|
zephyr_compile_definitions(STATIC_OBJS)
|
|
endif()
|
|
if(DEFINED FORKS)
|
|
zephyr_compile_definitions(FORKS=${FORKS})
|
|
endif()
|
|
target_sources(app PRIVATE src/main.c)
|