From af04b554ed95c9f384a9473c4b7c6952de6d2bfb Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Fri, 4 Mar 2016 10:37:32 +0100 Subject: [PATCH] Fix soname is not empty Affects CMake 3.2 (and later?) fatal error: -soname: must take a non-empty argument Workaround from http://stackoverflow.com/a/32399514/2319028 --- android.toolchain.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android.toolchain.cmake b/android.toolchain.cmake index ffa2612..254b021 100644 --- a/android.toolchain.cmake +++ b/android.toolchain.cmake @@ -1506,6 +1506,9 @@ if( DEFINED LIBRARY_OUTPUT_PATH_ROOT endif() endif() +# make sure that there is no empty soname used +string(REPLACE "" "" CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_CXX_CREATE_SHARED_MODULE}") + # copy shaed stl library to build directory if( NOT _CMAKE_IN_TRY_COMPILE AND __libstl MATCHES "[.]so$" AND DEFINED LIBRARY_OUTPUT_PATH ) get_filename_component( __libstlname "${__libstl}" NAME )