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

Commit d5d678a

Browse files
committed
Fix arduino sdk path finding issue
1 parent 4991c2e commit d5d678a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/Platform/Other/FindArduinoSDK.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ function(find_arduino_sdk _return_var)
1919
NO_CMAKE_FIND_ROOT_PATH)
2020
get_filename_component(sdk_path "${arduino_program_path}" DIRECTORY)
2121

22+
if (${CMAKE_HOST_APPLE})
23+
get_filename_component(sdk_path "${sdk_path}" DIRECTORY)
24+
string(APPEND sdk_path "/Java")
25+
endif()
26+
2227
if (NOT sdk_path OR "${sdk_path}" MATCHES "NOTFOUND")
2328
string(CONCAT error_message
2429
"Couldn't find Arduino SDK path - Is it in a non-standard location?" "\n"

0 commit comments

Comments
 (0)