[CMake] bugpoint-passes depends on intrinsics_gen
authorChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 02:20:59 +0000 (02:20 +0000)
committerChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 02:20:59 +0000 (02:20 +0000)
TestPasses.cpp has the following include chain:

llvm/IR/InstVisitor.h
llvm/IR/CallSite.h
llvm/IR/Attributes.h
llvm/IR/Attributes.gen

This means bugpoint-passes needs to depend on intrinsics_gen.

llvm-svn: 287425

llvm/tools/bugpoint-passes/CMakeLists.txt

index de68bb5..e32b0a3 100644 (file)
@@ -16,6 +16,8 @@ endif()
 
 add_llvm_loadable_module( BugpointPasses
   TestPasses.cpp
-  )
 
-add_dependencies(BugpointPasses bugpoint)
+  DEPENDS
+  intrinsics_gen
+  bugpoint
+  )