From 7da04d58050fbb7606d99e37ad6d3c3519a90733 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 6 Jan 2015 23:52:35 +0000 Subject: [PATCH] cmake: Fix 'examples' target after r225319 Add the missing `DEPENDS` keyword. r225319 did almost the right thing (I didn't notice the problem with it because `Kaleidoscope-Ch8` wasn't building at all). llvm-svn: 225321 --- llvm/cmake/modules/AddLLVM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 517b828..3b0090f 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -515,7 +515,7 @@ macro(add_llvm_example name) set_target_properties(${name} PROPERTIES FOLDER "Examples") if(NOT TARGET examples) - add_custom_target(examples ${name}) + add_custom_target(examples DEPENDS ${name}) else() add_dependencies(examples ${name}) endif() -- 2.7.4