vcpkg/ports/fluidsynth/add-usage-requirements.patch
Pierre Wendling 12e66720d2
[fluidsynth] Disable implicit OpenMP (#30277)
* [fluidsynth] Disable implicit openmp.

OpenMP is enabled by default, which may lead to several issues:
- Inconsistent builds between whether the user has OpenMP installed on
their machine.
- Non functional pkg-config file for static builds if OpenMP is an
external library (e.g. using libomp on macOS).

* [fluidsynth] Update baseline.
2023-03-20 00:49:29 -07:00

22 lines
767 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,16 @@
# define variables for configuration options:
# set(network-enabled @enable-network@)
+include(CMakeFindDependencyMacro)
+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")