Update CMakeLists.txt

This commit is contained in:
Kambiz Asadzadeh
2023-02-27 14:19:08 +02:00
committed by BogDan Vatra
parent 2d9c5adb3d
commit 4843961773
-5
View File
@@ -105,11 +105,6 @@ endif()
# With the recent update and the introduction of the QT_ANDROID_EXTRA_LIBS variable, this modification is necessary to copy the openssl files to the required path in Qt6.
# https://doc.qt.io/qt-6/cmake-target-property-qt-android-extra-libs.html
if(QT_VERSION GREATER 6.0.0)
set_property(TARGET ${PROJECT_NAME} PROPERTY QT_ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/latest/arm64/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/arm64/libssl_1_1.so
)
if (ANDROID_TARGET_ARCH STREQUAL "armeabi-v7a")
set_property(TARGET ${PROJECT_NAME} PROPERTY QT_ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/latest/arm/libcrypto_1_1.so