Skip to content

Commit

Permalink
Fix debug symbols on debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyslavmarkovaccenture authored and marcmo committed Nov 25, 2024
1 parent 2eff41e commit 437ae97
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Filelists.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ add_compile_options(
add_compile_options(
"$<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-O2;-g3;-Werror;-Wall>")

#[[
Build type is unspecified by default, but in case it was specified, we're
forcing debug to have same flags as release, as difference in optimized and
unoptimized version of software in embedded systems can be crucial.
#]]
set(CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_RELEASE})

if (BUILD_UNIT_TESTS)
add_compile_definitions(UNIT_TEST=1)
include(GoogleTest)
Expand Down

0 comments on commit 437ae97

Please sign in to comment.