diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-04-06 14:45:39 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-04-06 14:45:39 +0800 |
commit | 147171a94323760ea950355315c26c20ed95694e (patch) | |
tree | 808836344d4a111f46219f85429dc626bae6d18c | |
parent | d2d10a3be38a1c26843e895f34a674216dadf052 (diff) |
Fix so that ANDROID_EXTRA_LIBS really works
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 566638d..2b0ac7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,8 @@ if (ANDROID) /usr/local/aarch64-linux-android/sysroot/usr/lib/libssl.so /usr/local/aarch64-linux-android/sysroot/usr/lib/libcurl.so /usr/local/aarch64-linux-android/sysroot/usr/lib/librtclient.so - /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_arm64-v8a.so) + /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_arm64-v8a.so + CACHE INTERNAL "") elseif (ANDROID_ABI STREQUAL "armeabi-v7a") target_link_directories(${PROJECT_NAME} PRIVATE /usr/local/arm-linux-androideabi/sysroot/usr/lib) target_link_libraries(${PROJECT_NAME} qrtclient_armeabi-v7a) @@ -35,7 +36,8 @@ if (ANDROID) /usr/local/arm-linux-androideabi/sysroot/usr/lib/libssl.so /usr/local/arm-linux-androideabi/sysroot/usr/lib/libcurl.so /usr/local/arm-linux-androideabi/sysroot/usr/lib/librtclient.so - /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_armeabi-v7a.so) + /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_armeabi-v7a.so + CACHE INTERNAL "") elseif (ANDROID_ABI STREQUAL "x86") target_link_directories(${PROJECT_NAME} PRIVATE /usr/local/i686-linux-android/sysroot/usr/lib) target_link_libraries(${PROJECT_NAME} qrtclient_x86) @@ -44,7 +46,8 @@ if (ANDROID) /usr/local/i686-linux-android/sysroot/usr/lib/libssl.so /usr/local/i686-linux-android/sysroot/usr/lib/libcurl.so /usr/local/i686-linux-android/sysroot/usr/lib/librtclient.so - /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_x86.so) + /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_x86.so + CACHE INTERNAL "") elseif (ANDROID_ABI STREQUAL "x86_64") target_link_directories(${PROJECT_NAME} PRIVATE /usr/local/x86_64-linux-android/sysroot/usr/lib64) target_link_libraries(${PROJECT_NAME} qrtclient_x86_64) @@ -53,7 +56,8 @@ if (ANDROID) /usr/local/x86_64-linux-android/sysroot/usr/lib64/libssl.so /usr/local/x86_64-linux-android/sysroot/usr/lib64/libcurl.so /usr/local/x86_64-linux-android/sysroot/usr/lib64/librtclient.so - /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_x86_64.so) + /opt/Qt5.14.1/5.14.1/android/lib/libqrtclient_x86_64.so + CACHE INTERNAL "") endif() else() add_executable(${PROJECT_NAME} |