diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-06 23:42:49 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-06 23:42:49 +0000 |
| commit | 34057d0bac08c3266f069e54c358e07816c8b102 (patch) | |
| tree | 66cfc456e8b4889c843eceb789bdf5eee254436e /llvm | |
| parent | 9e93701b57f3c7ff77f22c7d3e88c00a5fb6ff68 (diff) | |
| download | bcm5719-llvm-34057d0bac08c3266f069e54c358e07816c8b102.tar.gz bcm5719-llvm-34057d0bac08c3266f069e54c358e07816c8b102.zip | |
cmake: Add 'examples' target
llvm-svn: 225319
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index ee55c52df6e..517b828991b 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -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) |

