build: fix detection of unsuitable JACK library
This commit is contained in:
parent
afe6024a85
commit
8af2379cf7
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@ find_path(JACK_INCLUDE_DIR NAMES jack/jack.h)
|
||||||
|
|
||||||
find_library(JACK_LIBRARY NAMES jack)
|
find_library(JACK_LIBRARY NAMES jack)
|
||||||
|
|
||||||
|
include(CheckLibraryExists)
|
||||||
|
check_library_exists(jack "jack_set_port_rename_callback" "${JACK_LIBRARY}" HAVE_jack_set_port_rename_callback)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(JACK DEFAULT_MSG JACK_LIBRARY JACK_INCLUDE_DIR)
|
find_package_handle_standard_args(JACK DEFAULT_MSG JACK_LIBRARY JACK_INCLUDE_DIR HAVE_jack_set_port_rename_callback)
|
||||||
|
|
||||||
mark_as_advanced(JACK_INCLUDE_DIR JACK_LIBRARY)
|
mark_as_advanced(JACK_INCLUDE_DIR JACK_LIBRARY)
|
||||||
|
|
Loading…
Reference in a new issue