[PATCH] D72255: Fix compiler extension example cmake integration
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 05:31:27 PST 2020
serge-sans-paille created this revision.
serge-sans-paille added a reviewer: svenvh.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
- Do not add it to the Export file
- Update install target
Repository:
rG LLVM Github Monorepo
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.236332.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200106/812ad953/attachment.bin>
More information about the llvm-commits
mailing list