From f9b15340ac9e51635f24edc618748b8613a6bce3 Mon Sep 17 00:00:00 2001 From: Max Gabrielsson Date: Wed, 5 Apr 2023 16:23:28 +0200 Subject: [PATCH] add openssl --- spatial/CMakeLists.txt | 1 + spatial/dependencies/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spatial/CMakeLists.txt b/spatial/CMakeLists.txt index aa510bbe..e3205fa8 100644 --- a/spatial/CMakeLists.txt +++ b/spatial/CMakeLists.txt @@ -56,6 +56,7 @@ find_package(GEOS REQUIRED) find_package(GDAL REQUIRED) find_package(CURL REQUIRED) find_package(EXPAT REQUIRED) +find_package(OpenSSL REQUIRED) # Important: The link order matters, its the reverse order of dependency target_link_libraries( diff --git a/spatial/dependencies/CMakeLists.txt b/spatial/dependencies/CMakeLists.txt index c3583f98..9056280b 100644 --- a/spatial/dependencies/CMakeLists.txt +++ b/spatial/dependencies/CMakeLists.txt @@ -67,7 +67,7 @@ ExternalProject_Add( -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH=OFF - -DOPENSSL_USE_STATIC_LIBS=TRUE # Propagate to FindOpenSSL.cmake + -DOPENSSL_USE_STATIC_LIBS=ON # Propagate to FindOpenSSL.cmake ) find_program(EXE_SQLITE3 sqlite3) @@ -169,7 +169,7 @@ ExternalProject_Add( -DGDAL_USE_EXPAT=ON -DGDAL_USE_CURL=ON -DGDAL_USE_OPENSSL=ON - -DOPENSSL_USE_STATIC_LIBS=TRUE # Propagate to FindOpenSSL.cmake + -DOPENSSL_USE_STATIC_LIBS=ON # Propagate to FindOpenSSL.cmake # This is not true, but a bug in gdal's cmake files -DACCEPT_MISSING_SQLITE3_RTREE:BOOL=ON