[PATCH] D89009: Add version to libLLVM also on non-UNIX
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 23 13:06:43 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb22bf7e82ae0: [CMake] Add version to libLLVM also on non-UNIX (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89009/new/
https://reviews.llvm.org/D89009
Files:
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -606,7 +606,7 @@
endif()
endif()
- if(ARG_SHARED AND UNIX)
+ if(ARG_SHARED)
if(NOT APPLE AND ARG_SONAME)
get_target_property(output_name ${name} OUTPUT_NAME)
if(${output_name} STREQUAL "output_name-NOTFOUND")
@@ -615,10 +615,12 @@
set(library_name ${output_name}-${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX})
set(api_name ${output_name}-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
set_target_properties(${name} PROPERTIES OUTPUT_NAME ${library_name})
- llvm_install_library_symlink(${api_name} ${library_name} SHARED
- COMPONENT ${name})
- llvm_install_library_symlink(${output_name} ${library_name} SHARED
- COMPONENT ${name})
+ if(UNIX)
+ llvm_install_library_symlink(${api_name} ${library_name} SHARED
+ COMPONENT ${name})
+ llvm_install_library_symlink(${output_name} ${library_name} SHARED
+ COMPONENT ${name})
+ endif()
endif()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89009.361314.patch
Type: text/x-patch
Size: 1199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210723/6fccb50a/attachment.bin>
More information about the llvm-commits
mailing list