* Philosophical: "explicit is better than implicit". * Practical: Allows useful errors if invalid directories given in components as the defaults aren't always used. Also trims the -I path from a number of components that have no actual include directory. * Simplifies knowing which components will be header-only and which won't
11 lines
229 B
CMake
11 lines
229 B
CMake
set(COMPONENT_SRCDIRS ".")
|
|
register_component()
|
|
|
|
target_link_libraries(cxx stdc++)
|
|
|
|
target_link_libraries(cxx "-u __cxa_guard_dummy")
|
|
|
|
if(NOT CONFIG_CXX_EXCEPTIONS)
|
|
target_link_libraries(cxx "-u __cxx_fatal_exception")
|
|
endif()
|