aboutsummaryrefslogtreecommitdiff
path: root/find-modules
diff options
context:
space:
mode:
authorVolker Krause <vkrause@kde.org>2019-03-04 08:37:24 +0100
committerVolker Krause <vkrause@kde.org>2019-03-04 08:37:50 +0100
commit514835418c9d8c16eacac8cad5e522a896d4db7b (patch)
tree8dec1a80a18337020ea3dcac47026c9bd5b32eaf /find-modules
parente135e57575db336f2e404551e10b049bd5a0ae10 (diff)
downloadextra-cmake-modules-514835418c9d8c16eacac8cad5e522a896d4db7b.tar.gz
extra-cmake-modules-514835418c9d8c16eacac8cad5e522a896d4db7b.tar.bz2
Restore FindFontconfig backward compatibility for plasma-desktop
Summary: I don't understand where plasma-desktop actually finds that old find module, but this fixes the build at least. Reviewers: cgiboudeaux Reviewed By: cgiboudeaux Subscribers: kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D19499
Diffstat (limited to 'find-modules')
-rw-r--r--find-modules/FindFontconfig.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/find-modules/FindFontconfig.cmake b/find-modules/FindFontconfig.cmake
index 937bc45e..6ac23a0a 100644
--- a/find-modules/FindFontconfig.cmake
+++ b/find-modules/FindFontconfig.cmake
@@ -105,6 +105,12 @@ if(Fontconfig_FOUND AND NOT TARGET Fontconfig::Fontconfig)
)
endif()
+# backward compatibility, remove in kf6
+set(FONTCONFIG_INCLUDE_DIR "${Fontconfig_INCLUDE_DIRS}")
+set(FONTCONFIG_LIBRARIES "${Fontconfig_LIBRARIES}")
+set(FONTCONFIG_DEFINITIONS "${Fontconfig_DEFINITIONS}")
+mark_as_advanced(FONTCONFIG_INCLUDE_DIR FONTCONFIG_LIBRARIES FONTCONFIG_DEFINITIONS)
+
include(FeatureSummary)
set_package_properties(Fontconfig PROPERTIES
URL "https://www.fontconfig.org/"