Edit Cmake file to use ENV variable to device if Uart is on debug header or not
This commit is contained in:
parent
9c94428144
commit
54416a6350
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user