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

View File

@ -56,9 +56,10 @@ add_link_options(-Wl,--gc-sections)
ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug") 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) 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) add_subdirectory(base64-lib)