Edit Cmake file to use ENV variable to device if Uart is on debug header or not

This commit is contained in:
Mario Hüttel 2021-04-10 13:45:00 +02:00
parent 9c94428144
commit 54416a6350
1 changed files with 3 additions and 2 deletions

View File

@ -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)