libtiff: Merge branch 'build-shared-by-default' into 'master'

From 21ad9b4412ed67e3e39393a7250e1c3e35d6a034 Mon Sep 17 00:00:00 2001
From: shaun walbridge <[EMAIL REDACTED]>
Date: Tue, 13 Dec 2022 12:00:17 +0000
Subject: [PATCH] CMake: restore shared libraries by default for top-level
 build

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1a982d1d..af5b6bfe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,9 +48,9 @@ project(tiff
 if(NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
   # libtiff is being included as a subproject of some other project.
   set(TIFF_INSTALL_DEFAULT OFF)
-  option(BUILD_SHARED_LIBS "Build shared libraries" ON)
 else()
   set(TIFF_INSTALL_DEFAULT ON)
+  option(BUILD_SHARED_LIBS "Build shared libraries" ON)
 endif()
 
 option(tiff-tools "build TIFF tools" ON)