mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
The properties added by commit 4a62e3d97c (macOS: Add
OSX_COMPATIBILITY_VERSION and OSX_CURRENT_VERSION properties,
2020-01-24, v3.17.0-rc1~80^2~1) are general-purpose for all platforms
using Mach-O formats and not just on OS X. Rename them accordingly.
The properties are new to the CMake 3.17 release so we can rename
them without compatibility concerns.
Fixes: #20442
10 lines
185 B
CMake
10 lines
185 B
CMake
enable_language(C)
|
|
|
|
add_library(foo SHARED foo.c)
|
|
set_target_properties(foo PROPERTIES
|
|
VERSION 1.0
|
|
SOVERSION 1
|
|
MACHO_COMPATIBILITY_VERSION 2.1.0
|
|
MACHO_CURRENT_VERSION 3.2.1
|
|
)
|