summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman <kosobrodov@fastmail.fm>2023-04-23 13:49:35 +1000
committerRoman <kosobrodov@fastmail.fm>2023-04-23 13:49:35 +1000
commitd2f2dbc3922579c1b9053015afaf5657fa83d187 (patch)
treee7824a57f52235c08ec44e19b954229c06412240
parent9bd48f0dbd64fb94dc2b5b05238fde0bfdd4ff3f (diff)
downloadlibtiff-git-d2f2dbc3922579c1b9053015afaf5657fa83d187.tar.gz
do not install libtiff-4.pc when tiff-install is reset
-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