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