Skip to content

Commit 1f08f40

Browse files
committed
Fix LINK_COMPONENTS
1 parent 5d487fd commit 1f08f40

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

offload/liboffload/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
add_subdirectory(API)
22

3-
add_llvm_library(LLVMOffload SHARED
4-
src/OffloadLib.cpp
5-
src/OffloadImpl.cpp)
3+
add_llvm_library(
4+
LLVMOffload SHARED
5+
src/OffloadLib.cpp
6+
src/OffloadImpl.cpp
7+
8+
LINK_COMPONENTS
9+
FrontendOpenMP
10+
Support
11+
)
612

713
foreach(plugin IN LISTS LIBOMPTARGET_PLUGINS_TO_BUILD)
814
target_link_libraries(LLVMOffload PRIVATE omptarget.rtl.${plugin})

offload/tools/offload-tblgen/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
##===----------------------------------------------------------------------===##
88
include(TableGen)
99

10+
set(LLVM_LINK_COMPONENTS Support)
11+
1012
add_tablegen(offload-tblgen OFFLOAD
1113
EXPORT OFFLOAD
1214
APIGen.cpp

0 commit comments

Comments
 (0)