Do not use SONAME for Android SHARED libs as it does not support it.

This commit is contained in:
Yao Wei Tjong 姚伟忠 2014-08-28 16:41:33 +08:00
Родитель ac20004e87
Коммит 2a33e6eea3
1 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -105,13 +105,15 @@ set_output_directories (${OUTPUT_PATH} ARCHIVE LIBRARY)
# Setup target
setup_library (${URHO3D_LIB_TYPE})
file (READ .soversion SOVERSION)
string (STRIP ${SOVERSION} SOVERSION)
string (REGEX MATCH "([^.]+)\\.([^.]+)\\.(.+)" MATCHED ${SOVERSION})
if (MATCHED)
set_target_properties (${TARGET_NAME} PROPERTIES VERSION ${MATCHED} SOVERSION ${CMAKE_MATCH_1})
else ()
message (FATAL_ERROR "The .soversion file is corrupted. It should contain a version number with this format major(0xFFFF).minor(0xFF).patch-level(0xFF). e.g.: 0.1.2")
if (NOT ANDROID)
file (READ .soversion SOVERSION)
string (STRIP ${SOVERSION} SOVERSION)
string (REGEX MATCH "([^.]+)\\.([^.]+)\\.(.+)" MATCHED ${SOVERSION})
if (MATCHED)
set_target_properties (${TARGET_NAME} PROPERTIES VERSION ${MATCHED} SOVERSION ${CMAKE_MATCH_1})
else ()
message (FATAL_ERROR "The .soversion file is corrupted. It should contain a version number with this format major(0xFFFF).minor(0xFF).patch-level(0xFF). e.g.: 0.1.2")
endif ()
endif ()
install (TARGETS ${TARGET_NAME} RUNTIME DESTINATION ${DEST_RUNTIME_DIR} LIBRARY DESTINATION ${DEST_LIBRARY_DIR} ARCHIVE DESTINATION ${DEST_LIBRARY_DIR})
if (NOT GIT_EXIT_CODE EQUAL 0)