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>
13 lines
316 B
CMake
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
|
|
)
|