From 54416a63508279446eab268ada54955215233397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 10 Apr 2021 13:45:00 +0200 Subject: [PATCH] Edit Cmake file to use ENV variable to device if Uart is on debug header or not --- stm-firmware/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stm-firmware/CMakeLists.txt b/stm-firmware/CMakeLists.txt index 614812d..caddc9f 100644 --- a/stm-firmware/CMakeLists.txt +++ b/stm-firmware/CMakeLists.txt @@ -56,9 +56,10 @@ add_link_options(-Wl,--gc-sections) ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug") -if (DEFINED UART_ON_DEBUG_HEADER) +if (DEFINED ENV{UART_ON_DEBUG_HEADER}) add_definitions(-DUART_ON_DEBUG_HEADER) -endif (DEFINED UART_ON_DEBUG_HEADER) + message("UART forced to debug header") +endif (DEFINED ENV{UART_ON_DEBUG_HEADER}) add_subdirectory(base64-lib)