Skip to content

Commit

Permalink
BSD compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Nov 26, 2024
1 parent b430e63 commit 7885699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if(QUICK_BUILD)
set(ENABLE_SFIZZ OFF)
set(ENABLE_GEM OFF)
set(ENABLE_FFMPEG OFF)
set(ENABLE_OPUS OFF)
endif()

if(("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
Expand Down Expand Up @@ -239,6 +240,7 @@ if(LINUX)
list(APPEND JUCE_COMPILE_DEFINITIONS JUCE_ALSA=1 JUCE_JACK=1 JUCE_JACK_CLIENT_NAME="plugdata")
elseif(UNIX AND NOT APPLE) # BSD
list(APPEND JUCE_COMPILE_DEFINITIONS JUCE_JACK=1 JUCE_JACK_CLIENT_NAME="plugdata")
compile_definitions(BSD=1 ENABLE_OPUS=0)
endif()

set(PLUGDATA_COMPILE_DEFINITIONS
Expand All @@ -256,6 +258,7 @@ if(ENABLE_FFMPEG)
list(APPEND PLUGDATA_COMPILE_DEFINITIONS ENABLE_FFMPEG=1)
endif()


if(ENABLE_GEM)
list(APPEND PLUGDATA_COMPILE_DEFINITIONS ENABLE_GEM=1)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Libraries/Gem/src)
Expand Down
2 changes: 1 addition & 1 deletion Libraries/pd-else

0 comments on commit 7885699

Please sign in to comment.