Skip to content

Commit c1fce74

Browse files
committed
Make JACK support optional, ON by default
1 parent 5b67a2b commit c1fce74

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ set(CMAKE_CXX_STANDARD 20)
2020
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2121

2222
option(BUILD_TESTS "Build unit tests." ON)
23-
2423
option(ENABLE_MIDI_DEBUG "Enable MIDI debug messages." OFF)
24+
option(ENABLE_JACK_SUPPORT "Enable JACK support." ON)
2525

2626
if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
2727
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic")
@@ -50,7 +50,9 @@ pkg_check_modules(RTMIDI REQUIRED rtmidi)
5050
pkg_check_modules(RTAUDIO REQUIRED rtaudio)
5151

5252
# Use pkg-config to find JACK
53-
pkg_check_modules(JACK jack)
53+
if(ENABLE_JACK_SUPPORT)
54+
pkg_check_modules(JACK REQUIRED jack)
55+
endif()
5456

5557
# Use pkg-config to find libsndfile
5658
pkg_check_modules(SNDFILE REQUIRED sndfile)

0 commit comments

Comments
 (0)