Skip to content

Commit df9701b

Browse files
authored
[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.
1 parent 753ac47 commit df9701b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openmp/runtime/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ else()
177177
add_llvm_library(omp ${LIBOMP_LIBRARY_KIND} ${LIBOMP_SOURCE_FILES} PARTIAL_SOURCES_INTENDED
178178
LINK_LIBS ${LIBOMP_CONFIGURED_LIBFLAGS} ${LIBOMP_DL_LIBS}
179179
LINK_COMPONENTS Support
180+
BUILDTREE_ONLY
180181
)
181182
# libomp must be a C++ library such that it can link libLLVMSupport
182183
set(LIBOMP_LINKER_LANGUAGE CXX)

0 commit comments

Comments
 (0)