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

@@ -1,6 +1,6 @@
IF(LMMS_HAVE_LV2)
include_directories(SYSTEM ${LV2_INCLUDE_DIRS})
include_directories(SYSTEM ${LILV_INCLUDE_DIRS})
include_directories(SYSTEM ${Lilv_INCLUDE_DIRS})
include_directories(SYSTEM ${SUIL_INCLUDE_DIRS})
INCLUDE(BuildPlugin)
BUILD_PLUGIN(lv2effect Lv2Effect.cpp Lv2FxControls.cpp Lv2FxControlDialog.cpp Lv2Effect.h Lv2FxControls.h Lv2FxControlDialog.h

View File

@@ -1,6 +1,6 @@
IF(LMMS_HAVE_LV2)
include_directories(SYSTEM ${LV2_INCLUDE_DIRS})
include_directories(SYSTEM ${LILV_INCLUDE_DIRS})
include_directories(SYSTEM ${Lilv_INCLUDE_DIRS})
include_directories(SYSTEM ${SUIL_INCLUDE_DIRS})
INCLUDE(BuildPlugin)
BUILD_PLUGIN(lv2instrument Lv2Instrument.cpp Lv2Instrument.h MOCFILES Lv2Instrument.h EMBEDDED_RESOURCES logo.png)