From: Richard Diamond Date: Thu, 13 Sep 2018 16:39:52 +0000 (+0000) Subject: [cmake] Fix a unittest when `LLVM_LINK_LLVM_DYLIB` is requested. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=939468d4b278a2432df1ed962fe3ba447b3adafe;p=platform%2Fupstream%2Fllvm.git [cmake] Fix a unittest when `LLVM_LINK_LLVM_DYLIB` is requested. llvm-svn: 342150 --- diff --git a/llvm/unittests/Passes/CMakeLists.txt b/llvm/unittests/Passes/CMakeLists.txt index d90df20..fa16d04 100644 --- a/llvm/unittests/Passes/CMakeLists.txt +++ b/llvm/unittests/Passes/CMakeLists.txt @@ -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)