Fix vcpkg builds (#7702)

* Try to fix MSVC linker error related to lilv

* Remove temporary workaround

* Temporary debugging messages

* oops

* Temporary debugging

* Try to find FluidSynth using Config mode first

* Try again to fix lilv

* Fix FluidSynth installed with vcpkg on Windows

* Fix lilv from vcpkg

* Remove debug flag

* Fix for when lilv is not found (*-NOTFOUND evaluates to false)

* Use lowercase package name for lv2

* Try using only pkg_check_modules for lv2

* Use Lilv::lilv

* Add pkg-config guard back in

* Fix package name

Co-authored-by: Tres Finocchiaro <tres.finocchiaro@gmail.com>

* Fix Lilv_INCLUDE_DIRS

* Rename vcpkg cache key

---------

Co-authored-by: Tres Finocchiaro <tres.finocchiaro@gmail.com>
This commit is contained in:
Dalton Messmer
2025-02-12 20:19:13 -05:00
committed by GitHub
parent 67d4a1ca61
commit 7d271e4f39
7 changed files with 51 additions and 39 deletions

View File

@@ -60,19 +60,19 @@ include_directories(SYSTEM
${FFTW3F_INCLUDE_DIRS}
)
IF(NOT ("${PULSEAUDIO_INCLUDE_DIR}" STREQUAL ""))
IF(PULSEAUDIO_INCLUDE_DIR)
include_directories(SYSTEM "${PULSEAUDIO_INCLUDE_DIR}")
ENDIF()
IF(NOT ("${LV2_INCLUDE_DIRS}" STREQUAL ""))
IF(LV2_INCLUDE_DIRS)
include_directories(SYSTEM ${LV2_INCLUDE_DIRS})
ENDIF()
IF(NOT ("${LILV_INCLUDE_DIRS}" STREQUAL ""))
include_directories(SYSTEM ${LILV_INCLUDE_DIRS})
IF(Lilv_INCLUDE_DIRS)
include_directories(SYSTEM ${Lilv_INCLUDE_DIRS})
ENDIF()
IF(NOT ("${SUIL_INCLUDE_DIRS}" STREQUAL ""))
IF(SUIL_INCLUDE_DIRS)
include_directories(SYSTEM ${SUIL_INCLUDE_DIRS})
ENDIF()