Skip to content

Commit

Permalink
Improve CMake for system port
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jul 13, 2022
1 parent 2a018c4 commit 16d2c19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lwprintf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ add_library(lwprintf INTERFACE)
target_sources(lwprintf PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src/lwprintf/lwprintf.c)
target_include_directories(lwprintf INTERFACE ${CMAKE_CURRENT_LIST_DIR}/src/include)

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

# Debug message
message("Exiting ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt")

0 comments on commit 16d2c19

Please sign in to comment.