Do not use SONAME for Android SHARED libs as it does not support it.
This commit is contained in:
Родитель
ac20004e87
Коммит
2a33e6eea3
|
@ -105,13 +105,15 @@ set_output_directories (${OUTPUT_PATH} ARCHIVE LIBRARY)
|
||||||
|
|
||||||
# Setup target
|
# Setup target
|
||||||
setup_library (${URHO3D_LIB_TYPE})
|
setup_library (${URHO3D_LIB_TYPE})
|
||||||
file (READ .soversion SOVERSION)
|
if (NOT ANDROID)
|
||||||
string (STRIP ${SOVERSION} SOVERSION)
|
file (READ .soversion SOVERSION)
|
||||||
string (REGEX MATCH "([^.]+)\\.([^.]+)\\.(.+)" MATCHED ${SOVERSION})
|
string (STRIP ${SOVERSION} SOVERSION)
|
||||||
if (MATCHED)
|
string (REGEX MATCH "([^.]+)\\.([^.]+)\\.(.+)" MATCHED ${SOVERSION})
|
||||||
set_target_properties (${TARGET_NAME} PROPERTIES VERSION ${MATCHED} SOVERSION ${CMAKE_MATCH_1})
|
if (MATCHED)
|
||||||
else ()
|
set_target_properties (${TARGET_NAME} PROPERTIES VERSION ${MATCHED} SOVERSION ${CMAKE_MATCH_1})
|
||||||
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")
|
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 ()
|
endif ()
|
||||||
install (TARGETS ${TARGET_NAME} RUNTIME DESTINATION ${DEST_RUNTIME_DIR} LIBRARY DESTINATION ${DEST_LIBRARY_DIR} ARCHIVE DESTINATION ${DEST_LIBRARY_DIR})
|
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)
|
if (NOT GIT_EXIT_CODE EQUAL 0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче