Xcode: Libraries created with NO_SONAME set to true still get cmake_symlink_library POST_BUILD action
When setting the NO_SONAME
property to TRUE
on a shared library target, no versioned symlinks are actually generated, however the "CMake Post Build Rules" in an Xcode target still contain the corresponding calls:
if test "$CONFIGURATION" = "Debug"; then :
cd <BINARY_DIR>
/opt/homebrew/Cellar/cmake/3.25.1/bin/cmake -E cmake_symlink_library <BINARY_DIR>/Debug/my_lib.dylib <BINARY_DIR>/Debug/my_lib.dylib <BINARY_DIR>/Debug/my_lib.dylib
fi
[...]
Fortunately this call does not seem to generate any symlinks or overwrite the original library file, I would expect CMake to omit the entire step when NO_SONAME
is enabled however.