Skip to content

Commit

Permalink
Fix missing link dependency of API on core
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Feb 4, 2024
1 parent ab3a6e9 commit 21b214c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ The CMake build scripts in this repo perform two distinct functions:

## Installing the Core Locally

THe easiest way to install the core locally, per [here](https://support.arduino.cc/hc/en-us/articles/360021232160-How-to-install-and-use-a-custom-core-version-in-the-IDE), is to copy it to your sketchbook directory.
The easiest way to install the core locally, per [here](https://support.arduino.cc/hc/en-us/articles/360021232160-How-to-install-and-use-a-custom-core-version-in-the-IDE), is to copy it to your sketchbook directory.
2 changes: 1 addition & 1 deletion extras/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(ARDUINO_API_SOURCES
ArduinoCore-API/api/String.cpp)

add_library(arduino-api STATIC ${ARDUINO_API_SOURCES})
target_link_libraries(arduino-api mbed-core-flags)
target_link_libraries(arduino-api mbed-core-flags arduino-core)
target_include_directories(arduino-api PUBLIC ArduinoCore-API)

install(DIRECTORY ArduinoCore-API/api DESTINATION cores/arduino)

0 comments on commit 21b214c

Please sign in to comment.