[Openmp-commits] [openmp] df9701b - [OpenMP] Fix multiply installing `libomp.so` (#93685)
via Openmp-commits
openmp-commits at lists.llvm.org
Wed May 29 06:57:19 PDT 2024
Author: Joseph Huber
Date: 2024-05-29T08:57:16-05:00
New Revision: df9701bfee2b13282a9c1bf981d37b965cb22bf7
URL: https://github.com/llvm/llvm-project/commit/df9701bfee2b13282a9c1bf981d37b965cb22bf7
DIFF: https://github.com/llvm/llvm-project/commit/df9701bfee2b13282a9c1bf981d37b965cb22bf7.diff
LOG: [OpenMP] Fix multiply installing `libomp.so` (#93685)
Summary:
The `add_llvm_library` interface handles installing the llvm libraries,
however we want to do our own handling. Otherwise, this will install
into the `./lib` location instead of the `./lib/<target>` one.
Added:
Modified:
openmp/runtime/src/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index 612d784be8a55..62c35c19e6b45 100644
--- a/openmp/runtime/src/CMakeLists.txt
+++ b/openmp/runtime/src/CMakeLists.txt
@@ -177,6 +177,7 @@ else()
add_llvm_library(omp ${LIBOMP_LIBRARY_KIND} ${LIBOMP_SOURCE_FILES} PARTIAL_SOURCES_INTENDED
LINK_LIBS ${LIBOMP_CONFIGURED_LIBFLAGS} ${LIBOMP_DL_LIBS}
LINK_COMPONENTS Support
+ BUILDTREE_ONLY
)
# libomp must be a C++ library such that it can link libLLVMSupport
set(LIBOMP_LINKER_LANGUAGE CXX)
More information about the Openmp-commits
mailing list