diff --git a/SilKit/source/CMakeLists.txt b/SilKit/source/CMakeLists.txt index 322639c43..bb81de4f1 100644 --- a/SilKit/source/CMakeLists.txt +++ b/SilKit/source/CMakeLists.txt @@ -257,7 +257,9 @@ elseif(UNIX AND NOT APPLE) PRIVATE -Wl,--build-id=sha1) endif() endif() - target_link_options(SilKit PRIVATE "LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/silkit.map") + if(NOT (CMAKE_SYSTEM_NAME MATCHES Android)) + target_link_options(SilKit PRIVATE "LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/silkit.map") + endif() endif() if ((CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang) AND NOT SILKIT_USE_SYSTEM_LIBRARIES)