Skip to content

Commit

Permalink
add PLATFORM_RP2040 cmake variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sberkun committed Feb 1, 2024
1 parent e8a0b97 commit ca43d59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ endif()

# Link with thread library, unless we are on the Zephyr platform.
if(NOT DEFINED LF_SINGLE_THREADED OR DEFINED LF_TRACE)
if (NOT (PLATFORM_ZEPHYR OR ${CMAKE_SYSTEM_NAME} STREQUAL "Rp2040"))
if (NOT (PLATFORM_ZEPHYR OR PLATFORM_RP2040))
find_package(Threads REQUIRED)
target_link_libraries(reactor-c PUBLIC Threads::Threads)
endif()
Expand Down
1 change: 1 addition & 0 deletions core/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Zephyr")
set(PLATFORM_ZEPHYR true)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Rp2040")
list(APPEND CORE_COMPILE_DEFS PLATFORM_RP2040)
set(PLATFORM_RP2040 true)
endif()

# Prepend all sources with platform
Expand Down

0 comments on commit ca43d59

Please sign in to comment.