diff options
author | Brad King <brad.king@kitware.com> | 2024-03-01 13:59:43 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-03-01 13:59:51 (GMT) |
commit | eafeb52d4812f3affd3d90e70b6c7e1789fd76a8 (patch) | |
tree | 870b2a6466f77dc879fc37c073d2d6d2d1b61cd5 /Modules | |
parent | 4f5322d18f1a00e46c3874b33a48628349ddc8db (diff) | |
parent | b6b2f73f36a89161a4833846ec64a52c07e53b4d (diff) | |
download | CMake-eafeb52d4812f3affd3d90e70b6c7e1789fd76a8.zip CMake-eafeb52d4812f3affd3d90e70b6c7e1789fd76a8.tar.gz CMake-eafeb52d4812f3affd3d90e70b6c7e1789fd76a8.tar.bz2 |
Merge topic 'FindTIFF-cmake-package'
b6b2f73f36 FindTIFF: Fix name of upstream TIFF cmake package
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9300
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindTIFF.cmake | 9 |
1 files 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) |