zephyr/lib/cpp/minimal/CMakeLists.txt
Torsten Rasmussen d2896df821 cmake: set minimal C++ linker properties in minimal C++ CMake impl
The property based toolchain integration allows a cleaner design by
letting the toolchain define its properties and values and let CMake
implementation of Zephyr provided C and C++ libraries adjust those
properties when minimal C or C++ libraries are used.

This commit moves handling of C++ linker library properties into
the minimal C++ CMake implementation.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-11-16 15:28:20 -05:00

13 lines
316 B
CMake

# SPDX-License-Identifier: Apache-2.0
# Clear the toolchain defined C++ library property when using minimal C++ lib.
set_linker_property(PROPERTY c++_library "")
set_linker_property(PROPERTY cpp_base "")
zephyr_system_include_directories(include)
zephyr_sources(
cpp_virtual.c
cpp_vtable.cpp
cpp_new.cpp
)