From a02f8d67b64c3cbbc52dae73a51b81b5aa519a1c Mon Sep 17 00:00:00 2001 From: Armin Date: Sun, 9 Aug 2026 22:41:38 +0200 Subject: [PATCH] fix Linux build: link juce_dsp and make CPU count detection portable --- CMakeLists.txt | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ece384..045d54e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,7 @@ target_link_libraries(Saftpumpe juce::juce_audio_basics juce::juce_audio_devices juce::juce_audio_formats + juce::juce_dsp juce::juce_audio_plugin_client juce::juce_audio_processors juce::juce_audio_utils diff --git a/Makefile b/Makefile index 0dfbe25..ffbcdee 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BUILD_DIR := build BUILD_TYPE := Release -JOBS := $(shell sysctl -n hw.ncpu) +JOBS := $(shell nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 2) all: build