forked from OSchip/llvm-project
[CMake]Getting rid of references to LLVM_SUBMIT_VERSION and LLVM_SUBMIT_SUBVERSION in favor of LLVM_VERSION_MAJOR and LLVM_VERSION_MINOR.
LLVM_SUBMIT_VERSION and LLVM_SUBMIT_SUBVERSION are commonly used variable names in the autoconf build system. They seem to have leeched into clang's CMake in a few places, and should just be replaced by the LLVM_VERSION_* variables where appropriate. llvm-svn: 250246
This commit is contained in:
parent
e978cdc84b
commit
658beb930e
|
@ -83,10 +83,7 @@ if (APPLE)
|
||||||
|
|
||||||
set(TOOL_INFO_UTI "${CLANG_VENDOR_UTI}")
|
set(TOOL_INFO_UTI "${CLANG_VENDOR_UTI}")
|
||||||
set(TOOL_INFO_VERSION "${CLANG_VERSION}")
|
set(TOOL_INFO_VERSION "${CLANG_VERSION}")
|
||||||
if (LLVM_SUBMIT_VERSION)
|
set(TOOL_INFO_BUILD_VERSION "${LLVM_MAJOR_VERSION}.${LLVM_MINOR_VERSION}")
|
||||||
set(TOOL_INFO_BUILD_VERSION
|
|
||||||
"${LLVM_SUBMIT_VERSION}.${LLVM_SUBMIT_SUBVERSION}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(TOOL_INFO_PLIST_OUT "${CMAKE_CURRENT_BINARY_DIR}/${TOOL_INFO_PLIST}")
|
set(TOOL_INFO_PLIST_OUT "${CMAKE_CURRENT_BINARY_DIR}/${TOOL_INFO_PLIST}")
|
||||||
target_link_libraries(clang
|
target_link_libraries(clang
|
||||||
|
|
|
@ -109,12 +109,9 @@ if(ENABLE_SHARED)
|
||||||
DEFINE_SYMBOL _CINDEX_LIB_)
|
DEFINE_SYMBOL _CINDEX_LIB_)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if(APPLE)
|
||||||
set(LIBCLANG_LINK_FLAGS " -Wl,-compatibility_version -Wl,1")
|
set(LIBCLANG_LINK_FLAGS " -Wl,-compatibility_version -Wl,1")
|
||||||
if (DEFINED ${LLVM_SUBMIT_VERSION})
|
set(LIBCLANG_LINK_FLAGS "${LIBCLANG_LINK_FLAGS} -Wl,-current_version -Wl,${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
|
||||||
set(LIBCLANG_LINK_FLAGS
|
|
||||||
"${LIBCLANG_LINK_FLAGS} -Wl,-current_version -Wl,${LLVM_SUBMIT_VERSION}.${LLVM_SUBMIT_SUBVERSION}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set_property(TARGET libclang APPEND_STRING PROPERTY
|
set_property(TARGET libclang APPEND_STRING PROPERTY
|
||||||
LINK_FLAGS ${LIBCLANG_LINK_FLAGS})
|
LINK_FLAGS ${LIBCLANG_LINK_FLAGS})
|
||||||
|
|
Loading…
Reference in New Issue