Skip to content

Commit 6e9f20a

Browse files
committed
Add missing dependencies.
1 parent c8bbb4b commit 6e9f20a

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
set(LLVM_LINK_COMPONENTS
2+
Support
3+
)
4+
15
set(DLM
26
DynamicLibraryManager.cpp
37
DynamicLibraryManagerSymbol.cpp
@@ -16,6 +20,19 @@ add_llvm_library(clangCppInterOp OBJECT
1620
${DLM}
1721
)
1822

23+
if (USE_CLING)
24+
set(cling_clang_interp clingInterpreter)
25+
endif()
26+
if (USE_REPL)
27+
set(cling_clang_interp clangInterpreter)
28+
endif()
29+
30+
target_link_libraries(clangCppInterOp PRIVATE
31+
${cling_clang_interp}
32+
clangAST
33+
clangBasic
34+
)
35+
1936
set_source_files_properties(CppInterOp.cpp
2037
PROPERTIES COMPILE_DEFINITIONS "LLVM_BINARY_DIR=\"${LLVM_BINARY_DIR}\"")
2138

unittests/CppInterOp/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,9 @@ add_cppinterop_unittest(CppInterOpTests
1111
Utils.cpp
1212
VariableReflectionTest.cpp
1313
)
14-
15-
if (USE_CLING)
16-
set(cling_clang_interp "clingInterpreter")
17-
endif()
18-
if (USE_REPL)
19-
set(cling_clang_interp "clangInterpreter")
20-
endif()
21-
22-
2314
target_link_libraries(CppInterOpTests
2415
PRIVATE
25-
${cling_clang_interp}
2616
clangCppInterOp
27-
clangAST
28-
clangBasic
29-
clangLex
3017
)
3118

3219
export_executable_symbols(CppInterOpTests)

0 commit comments

Comments
 (0)