Skip to content

Commit f7590d2

Browse files
committed
[COMGR] Fix undefined references when building with BUILD_SHARED_LIBS=ON
Change-Id: I0ac929399a2e436e10ad7b8b71856229b837a590
1 parent bb64a63 commit f7590d2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

amd/comgr/CMakeLists.txt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ install(FILES
369369

370370
if(TARGET clangFrontendTool)
371371
set(CLANG_LIBS
372+
clangBasic
373+
clangDriver
374+
clangSerialization
375+
clangFrontend
372376
clangFrontendTool)
373377
else()
374378
set(CLANG_LIBS
@@ -384,8 +388,24 @@ if (LLVM_LINK_LLVM_DYLIB)
384388
else()
385389
llvm_map_components_to_libnames(LLVM_LIBS
386390
${LLVM_TARGETS_TO_BUILD}
391+
BinaryFormat
392+
BitReader
393+
BitWriter
394+
CodeGen
395+
Core
387396
DebugInfoDWARF
388-
Symbolize)
397+
Demangle
398+
IRReader
399+
Linker
400+
MC
401+
MCDisassembler
402+
MCParser
403+
Object
404+
Option
405+
Support
406+
Symbolize
407+
TargetParser
408+
)
389409
endif()
390410

391411
target_link_options(amd_comgr

0 commit comments

Comments
 (0)