cmake: Fix FindJack to support finding PipeWire's libjack

FindJack was not using _INCLUDE_DIRS and _LIBRARY_DIRS set by
FindPkgConfig, which prevented it from locating the PipeWire
version of libjack when it is installed to a non-standard path.

In particular, this impacts Fedora Linux, which is the first
distribution to have made the change to have all audio routed
through PipeWire and eliminate the usage of PulseAudio and JACK
by default.

Reference: https://fedoraproject.org/wiki/Changes/DefaultPipeWire
This commit is contained in:
Neal Gompa 2021-05-07 16:08:53 -04:00 committed by Jim
parent ca88ba8bbc
commit ae60123f7f

View File

@ -33,7 +33,7 @@ else (JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
NAMES
jack/jack.h
PATHS
${_JACK_INCLUDEDIR}
${_JACK_INCLUDE_DIRS}
/usr/include
/usr/local/include
/opt/local/include
@ -44,7 +44,7 @@ else (JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
NAMES
jack
PATHS
${_JACK_LIBDIR}
${_JACK_LIBRARY_DIRS}
/usr/lib
/usr/local/lib
/opt/local/lib