# libtiff: Merge branch 'issue547' into 'master'

**URL:** <https://discourse.libsdl.org/t/libtiff-merge-branch-issue547-into-master/43701>\
**Category:** SDL Commits\
**Created:** [May 7, 2023, 1:26pm UTC](https://discourse.libsdl.org/t/libtiff-merge-branch-issue547-into-master/43701 "2023-05-07T13:26:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [May 7, 2023, 1:26pm UTC](https://discourse.libsdl.org/t/libtiff-merge-branch-issue547-into-master/43701/1 "2023-05-07T13:26:20Z")

</div>

> <https://github.com/libsdl-org/libtiff/commit/f79d2d5d1ed7c92b9fb0e87663249f1eb602d136>
>
> do not install libtiff-4.pc when tiff-install is reset
> 
> Closes #547
> 
> See merge r…equest libtiff/libtiff!481

```diff
From d2f2dbc3922579c1b9053015afaf5657fa83d187 Mon Sep 17 00:00:00 2001
From: Roman <[EMAIL REDACTED]>
Date: Sun, 23 Apr 2023 13:49:35 +1000
Subject: [PATCH] do not install libtiff-4.pc when tiff-install is reset

---
 cmake/PkgConfig.cmake | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmake/PkgConfig.cmake b/cmake/PkgConfig.cmake
index ec4f5383..9a7842c4 100644
--- a/cmake/PkgConfig.cmake
+++ b/cmake/PkgConfig.cmake
@@ -63,5 +63,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libtiff-4.pc.in
         ${CMAKE_CURRENT_BINARY_DIR}/libtiff-4.pc @ONLY)
 
 # Install pkg-config file
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libtiff-4.pc
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+if (tiff-install)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libtiff-4.pc
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+endif()
\ No newline at end of file

```
