[llvm] r225319 - cmake: Add 'examples' target
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Jan 6 15:42:49 PST 2015
Author: dexonsmith
Date: Tue Jan 6 17:42:49 2015
New Revision: 225319
URL: http://llvm.org/viewvc/llvm-project?rev=225319&view=rev
Log:
cmake: Add 'examples' target
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=225319&r1=225318&r2=225319&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Tue Jan 6 17:42:49 2015
@@ -513,6 +513,12 @@ macro(add_llvm_example name)
install(TARGETS ${name} RUNTIME DESTINATION examples)
endif()
set_target_properties(${name} PROPERTIES FOLDER "Examples")
+
+ if(NOT TARGET examples)
+ add_custom_target(examples ${name})
+ else()
+ add_dependencies(examples ${name})
+ endif()
endmacro(add_llvm_example name)
More information about the llvm-commits
mailing list