Skip to content

Commit cd0c392

Browse files
authored
Update CMakeLists.txt
1 parent c0cc3a6 commit cd0c392

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@ if(EMSCRIPTEN)
3030
)
3131
else()
3232
IF(WIN32)
33-
set(LLVM_LINK_COMPONENTS "")
33+
llvm_map_components_to_libnames(
34+
llvm_libs
35+
${LLVM_TARGETS_TO_BUILD}
36+
orcjit
37+
support
38+
core
39+
irreader
40+
codegen
41+
mc
42+
mcparser
43+
option
44+
)
3445
else()
3546
set(LLVM_LINK_COMPONENTS
3647
${LLVM_TARGETS_TO_BUILD}
@@ -140,14 +151,15 @@ else()
140151
${link_libs}
141152
)
142153
else()
143-
llvm_add_library(clangCppInterOp
144-
DISABLE_LLVM_LINK_LLVM_DYLIB
154+
add_library(clangCppInterOp
155+
SHARED
145156
CppInterOp.cpp
146157
CXCppInterOp.cpp
147158
${DLM}
148-
LINK_LIBS
149-
${link_libs}
150-
)
159+
)
160+
target_link_libraries(clangCppInterOp
161+
PRIVATE ${llvm_libs}
162+
)
151163
endif()
152164
endif()
153165

0 commit comments

Comments
 (0)