Skip to content

Commit 0696521

Browse files
committed
add PLATFORM_RP2040 cmake variable
1 parent 2b5f578 commit 0696521

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ endif()
9393

9494
# Link with thread library, unless we are on the Zephyr platform.
9595
if(NOT DEFINED LF_SINGLE_THREADED OR DEFINED LF_TRACE)
96-
if (NOT (PLATFORM_ZEPHYR OR ${CMAKE_SYSTEM_NAME} STREQUAL "Rp2040"))
96+
if (NOT (PLATFORM_ZEPHYR OR PLATFORM_RP2040))
9797
find_package(Threads REQUIRED)
9898
target_link_libraries(reactor-c PUBLIC Threads::Threads)
9999
endif()

core/platform/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Zephyr")
2424
set(PLATFORM_ZEPHYR true)
2525
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Rp2040")
2626
list(APPEND REACTORC_COMPILE_DEFS PLATFORM_RP2040)
27+
set(PLATFORM_RP2040 true)
2728
endif()
2829

2930
# Prepend all sources with platform

0 commit comments

Comments
 (0)