diff options
-rw-r--r-- | toolchain/ECMAndroidDeployQt.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/toolchain/ECMAndroidDeployQt.cmake b/toolchain/ECMAndroidDeployQt.cmake index 53b7d626..66dbbd6e 100644 --- a/toolchain/ECMAndroidDeployQt.cmake +++ b/toolchain/ECMAndroidDeployQt.cmake @@ -38,7 +38,10 @@ function(ecm_androiddeployqt QTANDROID_EXPORTED_TARGET ECM_ADDITIONAL_FIND_ROOT_ function(havestl var access VALUE) if (NOT VALUE STREQUAL "") - file(WRITE ${CMAKE_BINARY_DIR}/stl "${VALUE}") + string(FIND "${VALUE}" ".so\"" OUT) + math(EXPR OUT "${OUT}+4") + string(SUBSTRING "${VALUE}" 0 ${OUT} OUTSTR) + file(WRITE ${CMAKE_BINARY_DIR}/stl "${OUTSTR}") endif() endfunction() variable_watch(CMAKE_CXX_STANDARD_LIBRARIES havestl) |