Skip to content

Commit

Permalink
add cmake output for sndfile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl committed Nov 23, 2024
1 parent 4cdd9af commit b51a6c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -544,16 +544,20 @@ endif ( GLib2_VERSION AND GLib2_VERSION VERSION_LESS "2.26.0" )
unset ( LIBSNDFILE_SUPPORT CACHE )
unset ( LIBSNDFILE_HASVORBIS CACHE )
if ( enable-libsndfile )
set(CMAKE_FIND_DEBUG_MODE ON)
find_package ( SndFile ${LIBSNDFILE_MINIMUM_VERSION} )
set ( LIBSNDFILE_SUPPORT ${SndFile_FOUND} )
if ( LIBSNDFILE_SUPPORT )
cmake_print_properties(TARGETS SndFile::sndfile PROPERTIES LOCATION INTERFACE_INCLUDE_DIRECTORIES IMPORTED_CONFIGURATIONS)
cmake_print_variables(SndFile_VERSION SndFile_WITH_EXTERNAL_LIBS SndFile_WITH_MPEG)
list( APPEND PC_REQUIRES_PRIV "sndfile")
if ( SndFile_WITH_EXTERNAL_LIBS )
set ( LIBSNDFILE_HASVORBIS 1 )
else (SndFile_WITH_EXTERNAL_LIBS)
message ( NOTICE "Seems like libsndfile was compiled without OGG/Vorbis support." )
endif (SndFile_WITH_EXTERNAL_LIBS)
endif ( LIBSNDFILE_SUPPORT )
set(CMAKE_FIND_DEBUG_MODE OFF)
endif ( enable-libsndfile )

unset ( PULSE_SUPPORT CACHE )
Expand Down

0 comments on commit b51a6c0

Please sign in to comment.