2023-07-14 09:14:08 +02:00
|
|
|
From 54b1dbc550b3daa2a7834a9bfd73a0c2f8aeba6a Mon Sep 17 00:00:00 2001
|
2023-03-07 22:45:45 +01:00
|
|
|
From: Even Rouault <even.rouault@spatialys.com>
|
|
|
|
Date: Tue, 5 Jul 2022 19:40:53 +0200
|
|
|
|
Subject: [PATCH] proj-config.cmake generation: only add find_dependency(CURL)
|
|
|
|
for static builds
|
|
|
|
|
|
|
|
---
|
2023-07-14 09:14:08 +02:00
|
|
|
cmake/project-config.cmake.in | 12 ++++++++----
|
|
|
|
1 file changed, 8 insertions(+), 4 deletions(-)
|
2023-03-07 22:45:45 +01:00
|
|
|
|
|
|
|
diff --git a/cmake/project-config.cmake.in b/cmake/project-config.cmake.in
|
2023-07-14 09:14:08 +02:00
|
|
|
index 3f359668..db886396 100644
|
2023-03-07 22:45:45 +01:00
|
|
|
--- a/cmake/project-config.cmake.in
|
|
|
|
+++ b/cmake/project-config.cmake.in
|
2023-07-14 09:14:08 +02:00
|
|
|
@@ -19,11 +19,15 @@ include(CMakeFindDependencyMacro)
|
|
|
|
# Cf https://gitlab.kitware.com/cmake/cmake/-/issues/17612
|
2023-03-07 22:45:45 +01:00
|
|
|
cmake_policy(PUSH)
|
|
|
|
cmake_policy(SET CMP0012 NEW)
|
|
|
|
-if("@ENABLE_TIFF@")
|
2023-07-14 09:14:08 +02:00
|
|
|
- set(PROJ_CONFIG_FIND_TIFF_DEP ON)
|
2023-03-07 22:45:45 +01:00
|
|
|
+if(NOT "@BUILD_SHARED_LIBS@")
|
|
|
|
+ if("@ENABLE_TIFF@")
|
2023-07-14 09:14:08 +02:00
|
|
|
+ set(PROJ_CONFIG_FIND_TIFF_DEP ON)
|
2023-03-07 22:45:45 +01:00
|
|
|
+ endif()
|
|
|
|
endif()
|
|
|
|
-if("@CURL_ENABLED@")
|
2023-07-14 09:14:08 +02:00
|
|
|
- set(PROJ_CONFIG_FIND_CURL_DEP ON)
|
2023-03-07 22:45:45 +01:00
|
|
|
+if(NOT "@BUILD_SHARED_LIBS@")
|
|
|
|
+ if("@CURL_ENABLED@")
|
2023-07-14 09:14:08 +02:00
|
|
|
+ set(PROJ_CONFIG_FIND_CURL_DEP ON)
|
2023-03-07 22:45:45 +01:00
|
|
|
+ endif()
|
|
|
|
endif()
|
|
|
|
cmake_policy(POP)
|
|
|
|
|
|
|
|
--
|
2023-07-14 09:14:08 +02:00
|
|
|
2.41.0
|
2023-03-07 22:45:45 +01:00
|
|
|
|