When disabling the __deprecated macros in tests/kernel/pipe/deprecated, the macros was set to ''. For IAR tools this was expanded to '' which caused a compilation error. I have replaced them with /* deprecated */ which should work for all toolchains. Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
10 lines
329 B
CMake
10 lines
329 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
set(CMAKE_C_FLAGS "-D__deprecated=\"/* deprecated */\" -D__DEPRECATED_MACRO=\"/* deprecated_macro*/\"")
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(pipe_api)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|