Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 676f245

Browse files
authored
Merge pull request #14 from taoyuan/develop
Fix arduino sdk path finding issue on Mac
2 parents 4991c2e + 0cdc53f commit 676f245

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/Platform/Other/FindArduinoSDK.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ function(find_arduino_sdk _return_var)
2525
"If so, please set the ARDUINO_SDK_PATH CMake-Variable")
2626
message(FATAL_ERROR ${error_message})
2727
else ()
28+
if (${CMAKE_HOST_APPLE})
29+
get_filename_component(sdk_path "${sdk_path}" DIRECTORY)
30+
string(APPEND sdk_path "/Java")
31+
endif()
2832
set(${_return_var} "${sdk_path}" PARENT_SCOPE)
2933
endif ()
3034

0 commit comments

Comments
 (0)