[llvm] r225321 - cmake: Fix 'examples' target after r225319
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Jan 6 15:52:35 PST 2015
Author: dexonsmith
Date: Tue Jan 6 17:52:35 2015
New Revision: 225321
URL: http://llvm.org/viewvc/llvm-project?rev=225321&view=rev
Log:
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).
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=225321&r1=225320&r2=225321&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Tue Jan 6 17:52:35 2015
@@ -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()
More information about the llvm-commits
mailing list