Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit e459a68

Browse files
Fix sketchbook finding for newer versions of macOS IDE
1 parent 229c00a commit e459a68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎cmake/Platform/System/SketchbookFinder.cmake‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ function(_get_user_preferences_file_path _return_var)
1010

1111
if (${CMAKE_HOST_UNIX})
1212
if (${CMAKE_HOST_APPLE}) # Mac OS X
13-
set(dir_path "$ENV{HOME}/Library/Processing/${preferences_file_name}")
13+
if (EXISTS "$ENV{HOME}/Library/Arduino15/${preferences_file_name}")
14+
set(dir_path "$ENV{HOME}/Library/Arduino15/${preferences_file_name}")
15+
else ()
16+
set(dir_path "$ENV{HOME}/Library/Processing/${preferences_file_name}")
17+
endif ()
1418
else () # Linux
1519
if (EXISTS "$ENV{HOME}/.arduino15/${preferences_file_name}")
1620
set(dir_path "$ENV{HOME}/.arduino15/${preferences_file_name}")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /