[llvm] r250277 - [CMake] Add LLVM_VERSION_PATCH to the -current_version flag for libLTO and libLLVM.
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 00:50:22 PDT 2015
Author: cbieneman
Date: Wed Oct 14 02:50:21 2015
New Revision: 250277
URL: http://llvm.org/viewvc/llvm-project?rev=250277&view=rev
Log:
[CMake] Add LLVM_VERSION_PATCH to the -current_version flag for libLTO and libLLVM.
This is to match autoconf where LLVM_SUBMIT_SUBVERSION is usually set to ${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}.
Modified:
llvm/trunk/tools/llvm-shlib/CMakeLists.txt
llvm/trunk/tools/lto/CMakeLists.txt
Modified: llvm/trunk/tools/llvm-shlib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-shlib/CMakeLists.txt?rev=250277&r1=250276&r2=250277&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-shlib/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-shlib/CMakeLists.txt Wed Oct 14 02:50:21 2015
@@ -91,6 +91,6 @@ endif()
if (APPLE)
set_property(TARGET LLVM APPEND_STRING PROPERTY
LINK_FLAGS
- " -compatibility_version 1 -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
+ " -compatibility_version 1 -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")
endif()
Modified: llvm/trunk/tools/lto/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/CMakeLists.txt?rev=250277&r1=250276&r2=250277&view=diff
==============================================================================
--- llvm/trunk/tools/lto/CMakeLists.txt (original)
+++ llvm/trunk/tools/lto/CMakeLists.txt Wed Oct 14 02:50:21 2015
@@ -27,5 +27,5 @@ if (APPLE)
endif()
set_property(TARGET LTO APPEND_STRING PROPERTY
LINK_FLAGS
- " -compatibility_version 1 -current_version ${LTO_VERSION}.${LLVM_VERSION_MINOR}")
+ " -compatibility_version 1 -current_version ${LTO_VERSION}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")
endif()
More information about the llvm-commits
mailing list