Skip to content

Commit

Permalink
Merge pull request #440 from lf-lang/cmake-resilience
Browse files Browse the repository at this point in the history
Fix cmake syntax
  • Loading branch information
edwardalee authored May 31, 2024
2 parents d54dbd6 + 83b2d07 commit 7da949d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lingua-franca-ref.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gedf
master
8 changes: 5 additions & 3 deletions low_level_platform/impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Zephyr")
zephyr_library_link_libraries(kernel)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Rp2040")
add_library(lf-low-level-platform-impl STATIC ${LF_LOW_LEVEL_PLATFORM_FILES})
if (DEFINED NUMBER_OF_WORKERS AND ${NUMBER_OF_WORKERS} GREATER 2)
message(FATAL_ERROR "RP2040 can have at most 2 workers (one per core).\
Number of requested workers is ${NUMBER_OF_WORKERS}.")
if (DEFINED NUMBER_OF_WORKERS)
if (${NUMBER_OF_WORKERS} GREATER 2)
message(FATAL_ERROR "RP2040 can have at most 2 workers (one per core).\
Number of requested workers is ${NUMBER_OF_WORKERS}.")
endif()
endif()
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "FlexPRET")
add_library(lf-low-level-platform-impl STATIC ${LF_LOW_LEVEL_PLATFORM_FILES})
Expand Down

0 comments on commit 7da949d

Please sign in to comment.