From e7ee85daf989c1dec524c49d16ac10254ee2820a Mon Sep 17 00:00:00 2001 From: fuzzard Date: Sun, 5 May 2024 08:44:12 +1000 Subject: [cmake][modules] FindTagLib explicitly disable use of pkgconfig for Windows Programs like strawberry perl create a pkgconfig equivalent on windows, and as we then use LINK_LIBRARIES returned after this, it can add libs not intended for Windows (eg z.lib) --- cmake/modules/FindTagLib.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/FindTagLib.cmake b/cmake/modules/FindTagLib.cmake index 78a0eeeccb..1883d3fd9d 100644 --- a/cmake/modules/FindTagLib.cmake +++ b/cmake/modules/FindTagLib.cmake @@ -71,7 +71,7 @@ if(NOT TARGET TagLib::TagLib) # Build Taglib buildTagLib() else() - if(PKG_CONFIG_FOUND) + if(PKG_CONFIG_FOUND AND NOT (WIN32 OR WINDOWS_STORE)) if(TagLib_FIND_VERSION) if(TagLib_FIND_VERSION_EXACT) set(TagLib_FIND_SPEC "=${TagLib_FIND_VERSION_COMPLETE}") -- cgit v1.2.3