diff options
author | fuzzard <fuzzard@kodi.tv> | 2024-05-05 08:44:12 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2024-05-09 09:09:47 +1000 |
commit | e7ee85daf989c1dec524c49d16ac10254ee2820a (patch) | |
tree | 522411abc2590db02926f142a4236a8b530b3d50 | |
parent | 8526557197e3346556c73010e025d712a531b5bf (diff) | |
download | xbmc-e7ee85daf989c1dec524c49d16ac10254ee2820a.tar.xz |
[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)
-rw-r--r-- | cmake/modules/FindTagLib.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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}") |