From b071422f91941c6735ffcc647ff622775f1ee459 Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Wed, 14 Dec 2022 20:22:25 +0200 Subject: [PATCH] Small fixup for cmake cleanup --- src/CMakeLists.txt | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 07e8ca0b..64b7ffbd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -848,11 +848,11 @@ endif() add_subdirectory(displayapp/fonts) target_compile_options(infinitime_fonts PUBLIC - $<$,$>: ${COMMON_FLAGS} -Og -g3> - $<$,$>: ${COMMON_FLAGS} -Os> - $<$,$>: ${COMMON_FLAGS} -Og -g3 -fno-rtti> - $<$,$>: ${COMMON_FLAGS} -Os -fno-rtti> - $<$: -MP -MD -x assembler-with-cpp> + ${COMMON_FLAGS} + $<$: ${DEBUG_FLAGS}> + $<$: ${RELEASE_FLAGS}> + $<$: ${CXX_FLAGS}> + $<$: ${ASM_FLAGS}> ) # NRF SDK @@ -878,8 +878,6 @@ target_compile_options(nimble PRIVATE $<$: ${RELEASE_FLAGS}> $<$: ${CXX_FLAGS}> $<$: ${ASM_FLAGS}> - -Wno-unused-but-set-variable - -Wno-maybe-uninitialized ) # lvgl @@ -908,9 +906,11 @@ target_compile_definitions(QCBOR PUBLIC QCBOR_DISABLE_UNCOMMON_TAGS) target_compile_definitions(QCBOR PUBLIC USEFULBUF_CONFIG_LITTLE_ENDIAN) set_target_properties(QCBOR PROPERTIES LINKER_LANGUAGE C) target_compile_options(QCBOR PRIVATE - $<$,$>: ${COMMON_FLAGS} -O0 -g3> - $<$,$>: ${COMMON_FLAGS} -O3> - $<$: -MP -MD -x assembler-with-cpp> + ${COMMON_FLAGS} + $<$: ${DEBUG_FLAGS}> + $<$: ${RELEASE_FLAGS}> + $<$: ${ASM_FLAGS}> + -O3 ) # LITTLEFS_SRC @@ -923,7 +923,6 @@ target_compile_options(littlefs PRIVATE $<$: ${RELEASE_FLAGS}> $<$: ${CXX_FLAGS}> $<$: ${ASM_FLAGS}> - -Wno-unused-function ) # Build autonomous binary (without support for bootloader)