diff --git a/lib/TH/CMakeLists.txt b/lib/TH/CMakeLists.txt index ac4dce6c..370b896b 100644 --- a/lib/TH/CMakeLists.txt +++ b/lib/TH/CMakeLists.txt @@ -151,13 +151,15 @@ if(BUILD_STATIC) ADD_LIBRARY(TH_static STATIC ${src}) endif() -IF(NOT TH_SO_VERSION) - SET(TH_SO_VERSION 0) -ENDIF(NOT TH_SO_VERSION) -MESSAGE(STATUS "TH_SO_VERSION: ${TH_SO_VERSION}") -SET_TARGET_PROPERTIES(TH PROPERTIES - VERSION ${TH_SO_VERSION} - SOVERSION ${TH_SO_VERSION}) +IF(NOT ANDROID) + IF(NOT TH_SO_VERSION) + SET(TH_SO_VERSION 0) + ENDIF(NOT TH_SO_VERSION) + MESSAGE(STATUS "TH_SO_VERSION: ${TH_SO_VERSION}") + SET_TARGET_PROPERTIES(TH PROPERTIES + VERSION ${TH_SO_VERSION} + SOVERSION ${TH_SO_VERSION}) +ENDIF() CHECK_C_SOURCE_RUNS(" #include diff --git a/lib/luaT/CMakeLists.txt b/lib/luaT/CMakeLists.txt index f33768c7..db0ab4f9 100644 --- a/lib/luaT/CMakeLists.txt +++ b/lib/luaT/CMakeLists.txt @@ -13,9 +13,11 @@ if(BUILD_STATIC) ADD_LIBRARY(luaT_static STATIC luaT.h luaT.c) endif() -SET_TARGET_PROPERTIES(luaT PROPERTIES - VERSION 0 - SOVERSION 0) +IF(NOT ANDROID) + SET_TARGET_PROPERTIES(luaT PROPERTIES + VERSION 0 + SOVERSION 0) +ENDIF() IF(APPLE) SET_TARGET_PROPERTIES(luaT PROPERTIES