From 4657c878bdb137c71c9cf197c87dcdb08cac751b Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Mon, 3 Jun 2024 13:22:17 -0700 Subject: [PATCH] Fixed CMake generator for pico platform --- .../main/java/org/lflang/generator/c/CCmakeGenerator.java | 6 +++--- core/src/main/resources/lib/c/reactor-c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java b/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java index 4349b91dec..a674f09217 100644 --- a/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java +++ b/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java @@ -558,9 +558,9 @@ private static String setUpMainTargetRp2040( code.pr("pico_sdk_init()"); code.newLine(); code.pr("add_subdirectory(core)"); - code.pr("target_link_libraries(core PUBLIC pico_stdlib)"); - code.pr("target_link_libraries(core PUBLIC pico_multicore)"); - code.pr("target_link_libraries(core PUBLIC pico_sync)"); + code.pr("target_link_libraries(reactor-c PUBLIC pico_stdlib)"); + code.pr("target_link_libraries(reactor-c PUBLIC pico_multicore)"); + code.pr("target_link_libraries(reactor-c PUBLIC pico_sync)"); code.newLine(); code.pr("set(LF_MAIN_TARGET " + executableName + ")"); diff --git a/core/src/main/resources/lib/c/reactor-c b/core/src/main/resources/lib/c/reactor-c index d54dbd6435..587a8f9498 160000 --- a/core/src/main/resources/lib/c/reactor-c +++ b/core/src/main/resources/lib/c/reactor-c @@ -1 +1 @@ -Subproject commit d54dbd64350dc2bb3e173e296580be1ae2401b2d +Subproject commit 587a8f9498b69bc82f404e432f881d7bb0bcf383