summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2013-05-14 02:45:35 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-29 13:05:00 (GMT)
commitcbe3f2072bdd181660bc4f9174a73febd3ed5230 (patch)
tree12da53773b95bdb013fd73bed6f0b923cb3b3ff8 /Modules/Platform
parent373faae5e1c936351b143b0561c61ef9884303e1 (diff)
downloadCMake-cbe3f2072bdd181660bc4f9174a73febd3ed5230.zip
CMake-cbe3f2072bdd181660bc4f9174a73febd3ed5230.tar.gz
CMake-cbe3f2072bdd181660bc4f9174a73febd3ed5230.tar.bz2
Xcode: Add support for shared library versioning
Add a post-build command to shared library targets to create the versioning symbolic links.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Darwin.cmake8
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index 2e6b71e..6e5d449 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -207,12 +207,8 @@ if("${CMAKE_BACKWARDS_COMPATIBILITY}" MATCHES "^1\\.[0-6]$")
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined suppress")
endif()
-if(NOT XCODE)
- # Enable shared library versioning. This flag is not actually referenced
- # but the fact that the setting exists will cause the generators to support
- # soname computation.
- set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-install_name")
-endif()
+# Enable shared library versioning.
+set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-install_name")
# Xcode does not support -isystem yet.
if(XCODE)