macOS: find Jack framework in system directories
Until it is decided whether to ship JACK with pre-compiled libraries, search for the same in system directories. Ref T79261 Reviewed By: brecht Differential Revision: https://developer.blender.org/D9436
This commit is contained in:
parent
0cf46631e1
commit
8f2ebcf93f
@ -60,6 +60,17 @@ if(WITH_OPENAL)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WITH_JACK)
|
||||||
|
find_library(JACK_FRAMEWORK
|
||||||
|
NAMES jackmp
|
||||||
|
)
|
||||||
|
if(NOT JACK_FRAMEWORK)
|
||||||
|
set(WITH_JACK OFF)
|
||||||
|
else()
|
||||||
|
set(JACK_INCLUDE_DIRS ${JACK_FRAMEWORK}/headers)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT DEFINED LIBDIR)
|
if(NOT DEFINED LIBDIR)
|
||||||
set(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/darwin)
|
set(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/darwin)
|
||||||
# Prefer lib directory paths
|
# Prefer lib directory paths
|
||||||
@ -94,17 +105,6 @@ if(WITH_OPENSUBDIV)
|
|||||||
find_package(OpenSubdiv)
|
find_package(OpenSubdiv)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_JACK)
|
|
||||||
find_library(JACK_FRAMEWORK
|
|
||||||
NAMES jackmp
|
|
||||||
)
|
|
||||||
if(NOT JACK_FRAMEWORK)
|
|
||||||
set(WITH_JACK OFF)
|
|
||||||
else()
|
|
||||||
set(JACK_INCLUDE_DIRS ${JACK_FRAMEWORK}/headers)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WITH_CODEC_SNDFILE)
|
if(WITH_CODEC_SNDFILE)
|
||||||
find_package(SndFile)
|
find_package(SndFile)
|
||||||
find_library(_sndfile_FLAC_LIBRARY NAMES flac HINTS ${LIBDIR}/sndfile/lib)
|
find_library(_sndfile_FLAC_LIBRARY NAMES flac HINTS ${LIBDIR}/sndfile/lib)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user