[llvm] r342150 - [cmake] Fix a unittest when `LLVM_LINK_LLVM_DYLIB` is requested.
Richard Diamond via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 13 09:39:53 PDT 2018
Author: diamond
Date: Thu Sep 13 09:39:52 2018
New Revision: 342150
URL: http://llvm.org/viewvc/llvm-project?rev=342150&view=rev
Log:
[cmake] Fix a unittest when `LLVM_LINK_LLVM_DYLIB` is requested.
Modified:
llvm/trunk/unittests/Passes/CMakeLists.txt
Modified: llvm/trunk/unittests/Passes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Passes/CMakeLists.txt?rev=342150&r1=342149&r2=342150&view=diff
==============================================================================
--- llvm/trunk/unittests/Passes/CMakeLists.txt (original)
+++ llvm/trunk/unittests/Passes/CMakeLists.txt Thu Sep 13 09:39:52 2018
@@ -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)
More information about the llvm-commits
mailing list