diff --git a/cmake/Platform/Other/FindArduinoSDK.cmake b/cmake/Platform/Other/FindArduinoSDK.cmake index bcf3363..564d69f 100644 --- a/cmake/Platform/Other/FindArduinoSDK.cmake +++ b/cmake/Platform/Other/FindArduinoSDK.cmake @@ -25,6 +25,10 @@ function(find_arduino_sdk _return_var) "If so, please set the ARDUINO_SDK_PATH CMake-Variable") message(FATAL_ERROR ${error_message}) else () + if (${CMAKE_HOST_APPLE}) + get_filename_component(sdk_path "${sdk_path}" DIRECTORY) + string(APPEND sdk_path "/Java") + endif() set(${_return_var} "${sdk_path}" PARENT_SCOPE) endif ()