File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ ExternalProject_Add(sp_link
4848 )
4949
5050if (WIN32 OR APPLE )
51- find_package (SndFile CONFIG REQUIRED )
51+ # vcpkg's libsndfile port has shipped CMake config under both
52+ # share/SndFile/SndFileConfig.cmake and share/sndfile/sndfile-config.cmake
53+ # at different times; NAMES makes the lookup tolerant of either casing.
54+ find_package (SndFile NAMES SndFile sndfile CONFIG REQUIRED )
5255
5356 ExternalProject_Add (aubio-project
5457 PREFIX aubio-prefix
Original file line number Diff line number Diff line change @@ -31,4 +31,13 @@ cd vcpkg
3131@ echo Installing Libraries (%VCPKG_TRIPLET% )
3232vcpkg install libsndfile[core,external-libs] --triplet %VCPKG_TRIPLET% --recurse
3333
34+ REM Diagnostic: list what libsndfile actually installed under share/.
35+ REM If find_package(SndFile) fails downstream, this output makes it
36+ REM obvious whether the CMake config was installed and where.
37+ @ echo === installed\%VCPKG_TRIPLET% \share (sndfile-related) == =
38+ if exist " installed\%VCPKG_TRIPLET% \share" (
39+ dir /b /s " installed\%VCPKG_TRIPLET% \share" 2 > nul | findstr /i sndfile
40+ )
41+ @ echo === end of share listing ===
42+
3443cd %WORKING_DIR%
You can’t perform that action at this time.
0 commit comments