[PATCH] D72255: Fix compiler extension example cmake integration

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 00:36:14 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5a9c24b5721b: Fix compiler extension example cmake integration (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72255/new/

https://reviews.llvm.org/D72255

Files:
  llvm/examples/Bye/CMakeLists.txt


Index: llvm/examples/Bye/CMakeLists.txt
===================================================================
--- llvm/examples/Bye/CMakeLists.txt
+++ llvm/examples/Bye/CMakeLists.txt
@@ -2,7 +2,9 @@
     Bye.cpp
     DEPENDS
     intrinsics_gen
+    BUILDTREE_ONLY
     )
+
 if (LLVM_LINK_LLVM_DYLIB)
   target_link_libraries(Bye PUBLIC LLVM)
 else()
@@ -15,3 +17,7 @@
     )
 endif()
 
+if( LLVM_BUILD_EXAMPLES )
+  install(TARGETS ${name} RUNTIME DESTINATION examples)
+endif()
+set_target_properties(${name} PROPERTIES FOLDER "Examples")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72255.236531.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200107/4719c80a/attachment.bin>


More information about the llvm-commits mailing list