Skip to content

Commit

Permalink
legacy sndfile discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Dec 22, 2024
1 parent 5a70ddd commit 26f2f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,11 @@ unset ( LIBSNDFILE_HASVORBIS CACHE )
if ( enable-libsndfile )
#set(CMAKE_FIND_DEBUG_MODE ON)
find_package ( SndFile ${LIBSNDFILE_MINIMUM_VERSION} QUIET )
if ( NOT SndFile_FOUND )
# Not all distros have switched to libsndfile's cmake based build system, see #1445.
# Therefore, discover sndfile via the legacy pkg-config magic.
find_package ( SndFileLegacy )
endif ()
set ( LIBSNDFILE_SUPPORT ${SndFile_FOUND} )
if ( LIBSNDFILE_SUPPORT )
message ( STATUS "Found libSndFile: ${SndFile_VERSION}" )
Expand Down
File renamed without changes.

0 comments on commit 26f2f0b

Please sign in to comment.