vcpkg/ports/fluidsynth/fix-dependencies.patch
NancyLi1013 df62d5cb36
[fluidsynth] Update to 2.2.4 (#20978)
* [fluidsynth] Update to 2.2.3

* Update patch

* EOL

* Change tool as a new feature

* version

* Remove code about CMAKE_EXECUTABLE_SUFFIX to fix linux build

* version

* update to 2.2.4, cleanup baseline, add supports keyword

* version

* Fix osx build

* version

* restore FEATURE_OPTIONS

* version

* Apply suggestions

* version

* Restore add_to_path in host triplet

* version

* Preserve log files for the build of make_tables.

Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-12-29 11:20:49 -08:00

16 lines
779 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4ea71c..df37028 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -517,8 +517,9 @@ else(NOT enable-pkgconfig)
find_package ( PkgConfig REQUIRED )
# Mandatory libraries: glib and gthread
- pkg_check_modules ( GLIB REQUIRED glib-2.0>=2.6.5 gthread-2.0>=2.6.5 )
+ pkg_check_modules ( GLIB IMPORTED_TARGET REQUIRED glib-2.0>=2.6.5 gthread-2.0>=2.6.5 )
list( APPEND PC_REQUIRES_PRIV "glib-2.0" "gthread-2.0")
+ set(GLIB_LIBRARIES PkgConfig::GLIB)
if ( GLIB_glib-2.0_VERSION AND GLIB_glib-2.0_VERSION VERSION_LESS "2.26.0" )
message ( WARNING "Your version of glib is very old. This may cause problems with fluidsynth's sample cache on Windows. Consider updating to glib 2.26 or newer!" )