--- cmake/SndFileChecks.cmake.orig 2020-07-23 13:42:53 UTC +++ cmake/SndFileChecks.cmake @@ -31,28 +31,7 @@ if (VCPKG_TOOLCHAIN AND (NOT CMAKE_VERSION VERSION_LES set (CMAKE_FIND_PACKAGE_PREFER_CONFIG ON) endif () -if (CMAKE_FIND_PACKAGE_PREFER_CONFIG) - find_package (Ogg 1.3 CONFIG) - find_package (Vorbis CONFIG COMPONENTS Enc) - find_package (FLAC CONFIG) - find_package (Opus CONFIG) - - include (FindPackageHandleStandardArgs) - find_package_handle_standard_args (Ogg CONFIG_MODE) - find_package_handle_standard_args (Vorbis CONFIG_MODE) - find_package_handle_standard_args (FLAC CONFIG_MODE) - find_package_handle_standard_args (Opus CONFIG_MODE) -else () - find_package (Ogg 1.3) - find_package (Vorbis COMPONENTS Enc) - find_package (FLAC) - find_package (Opus) -endif () -if (Vorbis_FOUND AND FLAC_FOUND AND Opus_FOUND) - set (HAVE_EXTERNAL_XIPH_LIBS 1) -else () - set (HAVE_EXTERNAL_XIPH_LIBS 0) -endif () +set (HAVE_EXTERNAL_XIPH_LIBS 0) find_package (Speex) find_package (SQLite3)