cmake: enable soversion by default for OpenHarmony OS

Closes #17743
This commit is contained in:
SC404 2025-06-25 16:45:59 +08:00 committed by Daniel Stenberg
parent d22057d78b
commit 6c85579c84
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -203,6 +203,7 @@ if(BUILD_SHARED_LIBS)
CMAKE_SYSTEM_NAME STREQUAL "Linux" OR
CMAKE_SYSTEM_NAME STREQUAL "SunOS" OR
CMAKE_SYSTEM_NAME STREQUAL "Haiku" OR
CMAKE_SYSTEM_NAME STREQUAL "OHOS" OR # OpenHarmony
CMAKE_SYSTEM_NAME STREQUAL "GNU/kFreeBSD" OR
# FreeBSD comes with the a.out and ELF flavours but a.out was supported
# up to v3.x and ELF from v3.x. I cannot imagine someone running CMake