From: Chris Bieneman Date: Wed, 14 Oct 2015 07:50:21 +0000 (+0000) Subject: [CMake] Add LLVM_VERSION_PATCH to the -current_version flag for libLTO and libLLVM. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=8f0bf9255c92d247a51f51b34925b16d8066e114 [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}. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250277 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-shlib/CMakeLists.txt b/tools/llvm-shlib/CMakeLists.txt index b679dc7fc3b..9fddc41965a 100644 --- a/tools/llvm-shlib/CMakeLists.txt +++ b/tools/llvm-shlib/CMakeLists.txt @@ -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() diff --git a/tools/lto/CMakeLists.txt b/tools/lto/CMakeLists.txt index e33ef8f37d8..62447eec389 100644 --- a/tools/lto/CMakeLists.txt +++ b/tools/lto/CMakeLists.txt @@ -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()