[CMake] libLLVM's compatibility version should be 1.
authorChris Bieneman <beanz@apple.com>
Tue, 13 Oct 2015 22:54:27 +0000 (22:54 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 13 Oct 2015 22:54:27 +0000 (22:54 +0000)
This is in matching with the autoconf build system.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250244 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-shlib/CMakeLists.txt

index f7da23a5613adc4e39a7e2666b30f52eaec53e1e..b679dc7fc3b3bbcad7c620fc5ba4a208a28554da 100644 (file)
@@ -91,6 +91,6 @@ endif()
 if (APPLE)
   set_property(TARGET LLVM APPEND_STRING PROPERTY
               LINK_FLAGS
-              " -compatibility_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR} -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
+              " -compatibility_version 1 -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
 endif()