From b6b2f73f36a89161a4833846ec64a52c07e53b4d Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 29 Feb 2024 08:12:26 -0500 Subject: FindTIFF: Fix name of upstream TIFF cmake package Since commit 6a3059e66f (FindTIFF: bridge `tiff-config` into FindTIFF-compatible interface, 2023-09-14, v3.28.0-rc1~87^2) we try to find the upstream TIFF cmake package. However, it is called `TiffConfig.cmake`, not `tiff-config.cmake`, so we need to match the capitalization of the package name. --- Modules/FindTIFF.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Modules/FindTIFF.cmake b/Modules/FindTIFF.cmake index 58514a4..fe1e94e 100644 --- a/Modules/FindTIFF.cmake +++ b/Modules/FindTIFF.cmake @@ -100,9 +100,9 @@ if (_TIFF_component_opt) endif () unset(_TIFF_component_opt) # Always find with QUIET to avoid noise when it is not found. -find_package(tiff CONFIG QUIET ${_TIFF_args}) +find_package(Tiff CONFIG QUIET ${_TIFF_args}) unset(_TIFF_args) -if (tiff_FOUND) +if (Tiff_FOUND) if (NOT TARGET TIFF::TIFF) add_library(TIFF::TIFF IMPORTED INTERFACE) set_target_properties(TIFF::TIFF PROPERTIES @@ -201,15 +201,16 @@ if (tiff_FOUND) endif () endif () endif () - set(TIFF_VERSION_STRING "${tiff_VERSION}") + set(TIFF_VERSION_STRING "${Tiff_VERSION}") foreach (_TIFF_component IN LISTS TIFF_FIND_COMPONENTS) - set(TIFF_${_TIFF_component}_FOUND "${tiff_${_TIFF_component}_FOUND}") + set(TIFF_${_TIFF_component}_FOUND "${Tiff_${_TIFF_component}_FOUND}") endforeach () unset(_TIFF_component) include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) find_package_handle_standard_args(TIFF HANDLE_COMPONENTS + REQUIRED_VARS Tiff_DIR VERSION_VAR TIFF_VERSION_STRING) cmake_policy(POP) -- cgit v0.12