mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[cmake] Fix a unittest when LLVM_LINK_LLVM_DYLIB
is requested.
llvm-svn: 342150
This commit is contained in:
parent
5b727d26c7
commit
8bd6258962
@ -10,12 +10,17 @@ endif()
|
||||
set(LLVM_LINK_COMPONENTS Support Passes Core)
|
||||
add_llvm_unittest(PluginsTests
|
||||
PluginsTest.cpp
|
||||
|
||||
DEPENDS
|
||||
TestPlugin
|
||||
)
|
||||
export_executable_symbols(PluginsTests)
|
||||
|
||||
set(LLVM_LINK_COMPONENTS)
|
||||
add_llvm_loadable_module(TestPlugin
|
||||
TestPlugin.cpp
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
)
|
||||
|
||||
# Put plugin next to the unit test executable.
|
||||
@ -24,6 +29,3 @@ set_output_directory(TestPlugin
|
||||
LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
|
||||
)
|
||||
set_target_properties(TestPlugin PROPERTIES FOLDER "Tests")
|
||||
|
||||
add_dependencies(TestPlugin intrinsics_gen)
|
||||
add_dependencies(PluginsTests TestPlugin)
|
||||
|
Loading…
Reference in New Issue
Block a user