summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2023-05-07 11:11:36 +0000
committerEven Rouault <even.rouault@spatialys.com>2023-05-07 11:11:36 +0000
commitf79d2d5d1ed7c92b9fb0e87663249f1eb602d136 (patch)
treef633f01d913992f0b6fe31f3de19ad68a0c35a9f
parent7e28cd362b9b7ca984b685562ee945dacdc2c50e (diff)
parentd2f2dbc3922579c1b9053015afaf5657fa83d187 (diff)
downloadlibtiff-git-f79d2d5d1ed7c92b9fb0e87663249f1eb602d136.tar.gz
Merge branch 'issue547' into 'master'
do not install libtiff-4.pc when tiff-install is reset Closes #547 See merge request libtiff/libtiff!481
-rw-r--r--cmake/PkgConfig.cmake6
1 files 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