Skip to content

Commit 5cf635d

Browse files
Merge pull request queezythegreat#76 from balp/master
Set SDK_PATH_HINTS to find the SDK better on windows.
2 parents 79d8be4 + 29b3602 commit 5cf635d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

cmake/ArduinoToolchain.cmake

+10-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,16 @@ if(NOT ARDUINO_SDK_PATH)
5252
list(APPEND ARDUINO_PATHS arduino-00${VERSION})
5353
endforeach()
5454

55-
file(GLOB SDK_PATH_HINTS /usr/share/arduino*
56-
/opt/local/arduino*
57-
/opt/arduino*
58-
/usr/local/share/arduino*)
55+
if(UNIX)
56+
file(GLOB SDK_PATH_HINTS /usr/share/arduino*
57+
/opt/local/arduino*
58+
/opt/arduino*
59+
/usr/local/share/arduino*)
60+
elseif(WIN32)
61+
set(SDK_PATH_HINTS "C:\\Program Files\\Arduino"
62+
"C:\\Program Files (x86)\\Arduino"
63+
)
64+
endif()
5965
list(SORT SDK_PATH_HINTS)
6066
list(REVERSE SDK_PATH_HINTS)
6167
endif()

0 commit comments

Comments
 (0)