summaryrefslogtreecommitdiffstats
path: root/Tests/FindFontconfig
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-26 17:44:52 (GMT)
committerBrad King <brad.king@kitware.com>2019-03-26 18:14:09 (GMT)
commita3a1e69f8a8e6571bbb8c9257b401f04c22bd1e2 (patch)
tree85da4b56082686a8bfaea0c61fb855dc3197707c /Tests/FindFontconfig
parentbf02d625325535f485512eba307cff54c08bb257 (diff)
downloadCMake-a3a1e69f8a8e6571bbb8c9257b401f04c22bd1e2.zip
CMake-a3a1e69f8a8e6571bbb8c9257b401f04c22bd1e2.tar.gz
CMake-a3a1e69f8a8e6571bbb8c9257b401f04c22bd1e2.tar.bz2
FindFontconfig: Convert module variables to camel case
Our documented standard for find module variable names is to match the case of the find module package name. This was overlooked when the module was added by commit 84e7920b3a (FindFontconfig: Add module to find Fontconfig, 2018-09-27, v3.14.0-rc1~523^2). The module was released with the upper case names in CMake 3.14.0, so fix it to have camel case names in 3.14.1. This is incompatible but anyone using a given release series should be using the latest patch on it and we've made breaking fixups on newly released features like this before. Reported-by: Christophe Giboudeaux <christophe@krop.fr> Fixes: #19094
Diffstat (limited to 'Tests/FindFontconfig')
-rw-r--r--Tests/FindFontconfig/Test/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/FindFontconfig/Test/CMakeLists.txt b/Tests/FindFontconfig/Test/CMakeLists.txt
index 81db3ba..36c76b1 100644
--- a/Tests/FindFontconfig/Test/CMakeLists.txt
+++ b/Tests/FindFontconfig/Test/CMakeLists.txt
@@ -4,13 +4,13 @@ include(CTest)
find_package(Fontconfig REQUIRED)
-add_definitions(-DCMAKE_EXPECTED_FONTCONFIG_VERSION="${FONTCONFIG_VERSION}")
+add_definitions(-DCMAKE_EXPECTED_FONTCONFIG_VERSION="${Fontconfig_VERSION}")
add_executable(test_tgt main.c)
target_link_libraries(test_tgt Fontconfig::Fontconfig)
add_test(NAME test_tgt COMMAND test_tgt)
add_executable(test_var main.c)
-target_include_directories(test_var PRIVATE ${FONTCONFIG_INCLUDE_DIRS})
-target_link_libraries(test_var PRIVATE ${FONTCONFIG_LIBRARIES})
+target_include_directories(test_var PRIVATE ${Fontconfig_INCLUDE_DIRS})
+target_link_libraries(test_var PRIVATE ${Fontconfig_LIBRARIES})
add_test(NAME test_var COMMAND test_var)