[cmake] Remove install from add_llvm_example_library.

This should fix
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/30086
This commit is contained in:
Florian Hahn 2020-01-04 17:12:24 +00:00
parent 0bb22b91ea
commit 4c6c4e2fce
1 changed files with 3 additions and 4 deletions

View File

@ -1058,10 +1058,9 @@ endmacro(add_llvm_example name)
macro(add_llvm_example_library name)
if( NOT LLVM_BUILD_EXAMPLES )
set(EXCLUDE_FROM_ALL ON)
endif()
add_llvm_library(${name} BUILDTREE_ONLY ${ARGN})
if( LLVM_BUILD_EXAMPLES )
install(TARGETS ${name} RUNTIME DESTINATION examples)
add_llvm_library(${name} BUILDTREE_ONLY ${ARGN})
else()
add_llvm_library(${name} ${ARGN})
endif()
set_target_properties(${name} PROPERTIES FOLDER "Examples")