Skip to content

Commit 8342fce

Browse files
committed
Build - Win SndFile: NAMES fallback + diagnostic dir listing
1 parent e34c00d commit 8342fce

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎app/external/CMakeLists.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ ExternalProject_Add(sp_link
4848
)
4949

5050
if (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

‎app/win-pre-vcpkg.bat‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,13 @@ cd vcpkg
3131
@echo Installing Libraries (%VCPKG_TRIPLET%)
3232
vcpkg 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+
3443
cd %WORKING_DIR%

0 commit comments

Comments
 (0)