fixed stupid assertion failure in close_audio()
[svc.git] / cmake / FindJack.cmake
blob9e7f59328e238cdb87bb9a4bd82a6d86d0669a76
1 # - Find Jack
2 # Find the Jack libraries (asound)
4 #  This module defines the following variables:
5 #     JACK_FOUND           - True if JACK_INCLUDE_DIR & JACK_LIBRARY
6 #                            are found
7 #     JACK_LIBRARIES       - Set when JACK_LIBRARY is found
8 #     JACK_INCLUDE_DIRS    - Set when JACK_INCLUDE_DIR is found
10 #     JACK_INCLUDE_DIR     - where to find jack.h, etc.
11 #     JACK_LIBRARY         - the jack library
14 #=============================================================================
15 #=============================================================================
17 find_path(JACK_INCLUDE_DIR NAMES jack.h
18           PATH_SUFFIXES jack
19           DOC "Jack include directory"
22 find_library(JACK_LIBRARY NAMES jack
23           DOC "The Jack library"
26 include(FindPackageHandleStandardArgs)
27 FIND_PACKAGE_HANDLE_STANDARD_ARGS(JACK DEFAULT_MSG JACK_LIBRARY JACK_INCLUDE_DIR)
29 if(JACK_FOUND)
30   set( JACK_LIBRARIES ${JACK_LIBRARY} )
31   set( JACK_INCLUDE_DIRS ${JACK_INCLUDE_DIR} )
32 endif()
34 mark_as_advanced(JACK_INCLUDE_DIR JACK_LIBRARY)