aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-05-29 08:57:16 -0500
committerGitHub <noreply@github.com>2024-05-29 08:57:16 -0500
commitdf9701bfee2b13282a9c1bf981d37b965cb22bf7 (patch)
tree38ec67f7494c83d301047f92bbff97719a78e0a4
parent753ac4786e250604224701616f0962e41e163a02 (diff)
downloadllvm-df9701bfee2b13282a9c1bf981d37b965cb22bf7.zip
llvm-df9701bfee2b13282a9c1bf981d37b965cb22bf7.tar.gz
llvm-df9701bfee2b13282a9c1bf981d37b965cb22bf7.tar.bz2
[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.
-rw-r--r--openmp/runtime/src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index 612d784..62c35c1 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)