mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 14:50:26 +00:00
[CMake] Add missing component dependencies, to fix building for mingw with BUILD_SHARED_LIBS
Differential Revision: https://reviews.llvm.org/D73840
This commit is contained in:
parent
f8865c0194
commit
c1c9819ef9
@ -7,6 +7,10 @@ add_llvm_pass_plugin(Bye
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
BUILDTREE_ONLY
|
||||
LINK_COMPONENTS
|
||||
ipo
|
||||
Core
|
||||
Support
|
||||
)
|
||||
|
||||
install(TARGETS ${name} RUNTIME DESTINATION examples)
|
||||
|
@ -11,7 +11,7 @@ if( NOT LLVM_REQUIRES_RTTI )
|
||||
endif()
|
||||
|
||||
if(WIN32 OR CYGWIN)
|
||||
set(LLVM_LINK_COMPONENTS Core)
|
||||
set(LLVM_LINK_COMPONENTS Core Support)
|
||||
endif()
|
||||
|
||||
add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY
|
||||
|
@ -14,7 +14,7 @@ add_llvm_unittest(PluginsTests
|
||||
export_executable_symbols(PluginsTests)
|
||||
target_link_libraries(PluginsTests PRIVATE LLVMTestingSupport)
|
||||
|
||||
set(LLVM_LINK_COMPONENTS)
|
||||
set(LLVM_LINK_COMPONENTS Support Core)
|
||||
add_llvm_library(TestPlugin MODULE BUILDTREE_ONLY
|
||||
TestPlugin.cpp
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user