File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change
1
+ set (LLVM_LINK_COMPONENTS
2
+ Support
3
+ )
4
+
1
5
set (DLM
2
6
DynamicLibraryManager.cpp
3
7
DynamicLibraryManagerSymbol.cpp
@@ -16,6 +20,19 @@ add_llvm_library(clangCppInterOp OBJECT
16
20
${DLM}
17
21
)
18
22
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
+
19
36
set_source_files_properties (CppInterOp.cpp
20
37
PROPERTIES COMPILE_DEFINITIONS "LLVM_BINARY_DIR=\" ${LLVM_BINARY_DIR} \" " )
21
38
Original file line number Diff line number Diff line change @@ -11,22 +11,9 @@ add_cppinterop_unittest(CppInterOpTests
11
11
Utils.cpp
12
12
VariableReflectionTest.cpp
13
13
)
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
-
23
14
target_link_libraries (CppInterOpTests
24
15
PRIVATE
25
- ${cling_clang_interp}
26
16
clangCppInterOp
27
- clangAST
28
- clangBasic
29
- clangLex
30
17
)
31
18
32
19
export_executable_symbols (CppInterOpTests )
You can’t perform that action at this time.
0 commit comments