diff --git a/Source/Engine/CMakeLists.txt b/Source/Engine/CMakeLists.txt index 1604a640f..592a35308 100644 --- a/Source/Engine/CMakeLists.txt +++ b/Source/Engine/CMakeLists.txt @@ -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)