Skip to content

Commit cd64a0b

Browse files
authored
Try linking to Support lib
1 parent c53c6a1 commit cd64a0b

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

unittests/CppInterOp/CMakeLists.txt

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@ set(LLVM_LINK_COMPONENTS
22
Support
33
)
44

5-
add_llvm_library(CppInterOpTests
6-
DISABLE_LLVM_LINK_LLVM_DYLIB
7-
CUDATest.cpp
8-
EnumReflectionTest.cpp
9-
FunctionReflectionTest.cpp
10-
InterpreterTest.cpp
11-
JitTest.cpp
12-
ScopeReflectionTest.cpp
13-
TypeReflectionTest.cpp
14-
Utils.cpp
15-
VariableReflectionTest.cpp
16-
)
5+
llvm_map_components_to_libnames(
6+
llvm_libs
7+
Support
8+
)
9+
1710
add_cppinterop_unittest(CppInterOpTests
1811
CUDATest.cpp
1912
EnumReflectionTest.cpp
@@ -28,7 +21,7 @@ add_cppinterop_unittest(CppInterOpTests
2821

2922
target_link_libraries(CppInterOpTests
3023
PRIVATE
31-
clangCppInterOp
24+
clangCppInterOp ${llvm_libs}
3225
)
3326

3427
set_output_directory(CppInterOpTests

0 commit comments

Comments
 (0)