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
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-06 23:52:35 +00:00
parent 4e752fba92
commit 7da04d5805
1 changed files with 1 additions and 1 deletions

View File

@ -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()