summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-03-11 16:50:16 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-03-12 12:37:58 +0200
commite02f78b397f2314f3343019daaf5c8af9d1f19a7 (patch)
tree31d2fc0a72f6d6845747e9d05deb1ebeea3d6dd8
parent5a62cbe268f88125ab0bc5a65d8966a2179a64a8 (diff)
OSM buildings: correctly download and add OpenSSL libraries
Pick-to: 6.7 6.7.0 6.6 6.6.3 Fixes: QTBUG-123164 Change-Id: I5d2bb2838ee40feea6d9a911072275f4bd6cbdfb Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
-rw-r--r--examples/demos/osmbuildings/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/demos/osmbuildings/CMakeLists.txt b/examples/demos/osmbuildings/CMakeLists.txt
index 31a557ef8..6a22dcd93 100644
--- a/examples/demos/osmbuildings/CMakeLists.txt
+++ b/examples/demos/osmbuildings/CMakeLists.txt
@@ -19,7 +19,15 @@ qt_add_executable(osmbuildings
)
if (ANDROID)
- add_android_openssl_libraries(osmbuildings)
+ include(FetchContent)
+ FetchContent_Declare(
+ android_openssl
+ DOWNLOAD_EXTRACT_TIMESTAMP true
+ URL https://github.com/KDAB/android_openssl/archive/refs/heads/master.zip
+ )
+ FetchContent_MakeAvailable(android_openssl)
+ include(${android_openssl_SOURCE_DIR}/android_openssl.cmake)
+ add_android_openssl_libraries(LightningViewerExample)
endif()
set_target_properties(osmbuildings PROPERTIES