Skip to content

Commit

Permalink
Add sys only if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jul 15, 2022
1 parent 16d2c19 commit 0161f05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lwprintf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ target_sources(lwprintf PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src/lwprintf/lwprintf.c
target_include_directories(lwprintf INTERFACE ${CMAKE_CURRENT_LIST_DIR}/src/include)

if (DEFINED LWPRINTF_SYS_PORT)
target_sources(lwprintf PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src/system/lwprintf_sys_${LWPRINTF_SYS_PORT}.c)
target_sources(lwprintf PUBLIC
${CMAKE_CURRENT_LIST_DIR}/src/system/lwprintf_sys_${LWPRINTF_SYS_PORT}.c)
endif()

# Debug message
Expand Down

0 comments on commit 0161f05

Please sign in to comment.