summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/examples/Bye/CMakeLists.txt6
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")
OpenPOWER on IntegriCloud