summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-01-04 17:12:24 +0000
committerFlorian Hahn <flo@fhahn.com>2020-01-04 17:12:24 +0000
commit4c6c4e2fce285c16b66a147afb287f7d4fc3c2e1 (patch)
tree2bf2f62e9c4dc6180199b95b58a56a364249106a /llvm/cmake/modules
parent0bb22b91ea335b964b99862834164b0b3a866eb4 (diff)
downloadbcm5719-llvm-4c6c4e2fce285c16b66a147afb287f7d4fc3c2e1.tar.gz
bcm5719-llvm-4c6c4e2fce285c16b66a147afb287f7d4fc3c2e1.zip
[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
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 2e1fd31332b..fad825fb7ca 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -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")
OpenPOWER on IntegriCloud