diff options
author | serge-sans-paille <sguelton@redhat.com> | 2020-01-07 09:27:08 +0100 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2020-01-07 09:27:08 +0100 |
commit | 5a9c24b5721b9becd642a6801eb46f1205e54ca0 (patch) | |
tree | 785fa8771514abf385d8430eb68ce4ba1b56c490 /llvm/examples | |
parent | 9890cc2ef08576cc16e32aff4288e7a7821a25f7 (diff) | |
download | bcm5719-llvm-5a9c24b5721b9becd642a6801eb46f1205e54ca0.tar.gz bcm5719-llvm-5a9c24b5721b9becd642a6801eb46f1205e54ca0.zip |
Fix compiler extension example cmake integration
- Do not add it to the Export file
- Update install target
Differential Revision: https://reviews.llvm.org/D72255
Diffstat (limited to 'llvm/examples')
-rw-r--r-- | llvm/examples/Bye/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/examples/Bye/CMakeLists.txt b/llvm/examples/Bye/CMakeLists.txt index ac3b33bf248..a6767209491 100644 --- a/llvm/examples/Bye/CMakeLists.txt +++ b/llvm/examples/Bye/CMakeLists.txt @@ -2,7 +2,9 @@ add_llvm_pass_plugin(Bye Bye.cpp DEPENDS intrinsics_gen + BUILDTREE_ONLY ) + if (LLVM_LINK_LLVM_DYLIB) target_link_libraries(Bye PUBLIC LLVM) else() @@ -15,3 +17,7 @@ else() ) endif() +if( LLVM_BUILD_EXAMPLES ) + install(TARGETS ${name} RUNTIME DESTINATION examples) +endif() +set_target_properties(${name} PROPERTIES FOLDER "Examples") |