From 1a16ace7756d8abd5da9459fc30fba26ab140c8f Mon Sep 17 00:00:00 2001 From: Rubin Gerritsen Date: Thu, 29 Aug 2024 20:23:20 +0200 Subject: [PATCH] unittest: Enable debug info by default By enabling debugging information it becomes way much simpler to find the root cause of a failing unit test as we can simply run it with a debugger. Signed-off-by: Rubin Gerritsen --- cmake/modules/unittest.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/modules/unittest.cmake b/cmake/modules/unittest.cmake index de5b0f3eeb6..9598bf8b84a 100644 --- a/cmake/modules/unittest.cmake +++ b/cmake/modules/unittest.cmake @@ -121,6 +121,8 @@ target_link_libraries(testbinary PRIVATE ${EXTRA_LDFLAGS_AS_LIST} ) +target_compile_options(test_interface INTERFACE $) + if(CONFIG_COVERAGE) target_compile_options(test_interface INTERFACE $)