[llvm] 4c6c4e2 - [cmake] Remove install from add_llvm_example_library.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 09:17:22 PST 2020


Author: Florian Hahn
Date: 2020-01-04T17:12:24Z
New Revision: 4c6c4e2fce285c16b66a147afb287f7d4fc3c2e1

URL: https://github.com/llvm/llvm-project/commit/4c6c4e2fce285c16b66a147afb287f7d4fc3c2e1
DIFF: https://github.com/llvm/llvm-project/commit/4c6c4e2fce285c16b66a147afb287f7d4fc3c2e1.diff

LOG: [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

Added: 
    

Modified: 
    llvm/cmake/modules/AddLLVM.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 2e1fd31332b2..fad825fb7ca9 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")


        


More information about the llvm-commits mailing list