Skip to content

Commit edb9a52

Browse files
committed
Build - fix Erlang include path on Linux for sp_link
1 parent 7097881 commit edb9a52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/external/sp_link/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ endif(NOT MSVC)
1515
# If we need to change something based on this running on CI, we can use if(DEFINED ENV{GITHUB_ACTION})
1616
if(APPLE)
1717
set(ERLANG_INCLUDE_PATH "/usr/local/lib/erlang/usr/include" CACHE PATH "Path to erlang includes")
18+
elseif(UNIX)
19+
set(ERLANG_INCLUDE_PATH "/usr/lib/erlang/usr/include" CACHE PATH "Path to erlang includes")
1820
elseif(MSVC)
1921
if(DEFINED ENV{GITHUB_ACTION})
2022
set(ERLANG_INCLUDE_PATH "C:/Program Files/erl10.7/usr/include" CACHE PATH "Path to erlang includes")
@@ -70,5 +72,6 @@ elseif(APPLE)
7072
target_link_libraries(libsp_link Ableton::Link "-framework CoreMIDI -framework CoreAudio -framework CoreFoundation -framework Accelerate -framework QuartzCore -framework AudioToolbox -framework IOKit -framework DiscRecording -framework Cocoa")
7173
elseif(UNIX)
7274
add_definitions(-DLINUX=1 -DNDEBUG=1)
75+
include_directories(${ERLANG_INCLUDE_PATH})
7376
target_link_libraries(libsp_link Ableton::Link)
7477
endif(MSVC)

0 commit comments

Comments
 (0)