logging: cleanup in CMakeLists.txt

log_output.c was added in two places: unconditionally when logging
is enabled and when CONFIG_LOG_OUTPUT is set. Cleaning up to add
source file only when module is enabled.

Original commit was reverted. Now it is reapplied.
Original commit:af31cad8366c82a35e8749e6488252e394ce158d

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-09-01 10:07:19 +02:00 committed by Carles Cufí
parent e052ba73ce
commit 539c509d2c

View file

@ -6,7 +6,6 @@ if(NOT CONFIG_LOG_MODE_MINIMAL)
log_core.c
log_mgmt.c
log_msg.c
log_output.c
)
zephyr_sources_ifdef(