[llvm] 5a9c24b - Fix compiler extension example cmake integration

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 00:28:23 PST 2020


Author: serge-sans-paille
Date: 2020-01-07T09:27:08+01:00
New Revision: 5a9c24b5721b9becd642a6801eb46f1205e54ca0

URL: https://github.com/llvm/llvm-project/commit/5a9c24b5721b9becd642a6801eb46f1205e54ca0
DIFF: https://github.com/llvm/llvm-project/commit/5a9c24b5721b9becd642a6801eb46f1205e54ca0.diff

LOG: Fix compiler extension example cmake integration

- Do not add it to the Export file
- Update install target

Differential Revision: https://reviews.llvm.org/D72255

Added: 
    

Modified: 
    llvm/examples/Bye/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/examples/Bye/CMakeLists.txt b/llvm/examples/Bye/CMakeLists.txt
index ac3b33bf248b..a6767209491a 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")


        


More information about the llvm-commits mailing list