From 8af2379cf7bbc23bce318dadff1035e0ad6f3eb2 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Thu, 22 Dec 2016 19:43:14 -0800 Subject: [PATCH] build: fix detection of unsuitable JACK library --- cmake/FindJACK.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/FindJACK.cmake b/cmake/FindJACK.cmake index 3a1d9de..9043bd6 100644 --- a/cmake/FindJACK.cmake +++ b/cmake/FindJACK.cmake @@ -10,7 +10,10 @@ find_path(JACK_INCLUDE_DIR NAMES jack/jack.h) 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) -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)