mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
ce8d96a7c3
* [fluidsynth] Update gentables patch. Installation of FluidSynthTargets.cmake was accidentally turned off with the previous version of the patch. * [fluidsynth] Update portfile. - Remove manpages. - vcpkg_copy_tools already cleans up the bin directories - Copy pdbs after moving the tools. - Remove `enable-debug` as it no longer exists. * [fluidsynth] Install usage. * [fluidsynth] Bump port version. * [fluidsynth] Update baseline. * [fluidsynth] Find dependencies in the config file. The library dependencies of `FluidSynth::libfluidsynth-OBJ` were not searched for in the Config file. * [fluidsynth] Update version. * [fluidsynth] Apply suggestion from review. Do not set `VCPKG_BUILD_MAKE_TABLES` in the patch. * [fluidsynth] Update version. * [fluidsynth] Update patch. - Avoid using REQUIRED to find packages. - Check for ALSA on Linux. - Provide versions for pkg-config modules. * [fluidsynth] Update version.
23 lines
805 B
Diff
23 lines
805 B
Diff
diff --git a/FluidSynthConfig.cmake.in b/FluidSynthConfig.cmake.in
|
|
index 1ffdf598..0be65e0e 100644
|
|
--- a/FluidSynthConfig.cmake.in
|
|
+++ b/FluidSynthConfig.cmake.in
|
|
@@ -6,5 +6,17 @@
|
|
# define variables for configuration options:
|
|
# set(network-enabled @enable-network@)
|
|
|
|
+include(CMakeFindDependencyMacro)
|
|
+find_dependency(OpenMP COMPONENTS C)
|
|
+find_dependency(PkgConfig)
|
|
+pkg_check_modules(GLIB IMPORTED_TARGET glib-2.0>=2.6.5 gthread-2.0>=2.6.5)
|
|
+set(ALSA_SUPPORT @ALSA_SUPPORT@)
|
|
+if(ALSA_SUPPORT)
|
|
+ pkg_check_modules(ALSA IMPORTED_TARGET alsa>=0.9.1)
|
|
+endif()
|
|
+set(LIBSNDFILE_SUPPORT @LIBSNDFILE_SUPPORT@)
|
|
+if(LIBSNDFILE_SUPPORT)
|
|
+ pkg_check_modules(LIBSNDFILE IMPORTED_TARGET sndfile>=1.0.0)
|
|
+endif()
|
|
# finally, include the targets file
|
|
include("${CMAKE_CURRENT_LIST_DIR}/FluidSynthTargets.cmake")
|