[MIPS GlobalISel] Select MSA vector generic and builtin add
[llvm-complete.git] / cmake / modules / LLVMDistributionSupport.cmake
blob45662333bad4c3858f4c32f8f43f1c3bbb5f8e8a
2 if(LLVM_DISTRIBUTION_COMPONENTS)
3   if(LLVM_ENABLE_IDE)
4     message(FATAL_ERROR "LLVM_DISTRIBUTION_COMPONENTS cannot be specified with multi-configuration generators (i.e. Xcode or Visual Studio)")
5   endif()
6 endif()
8 function(llvm_distribution_add_targets)
9   add_custom_target(distribution)
10   add_custom_target(install-distribution)
11   add_custom_target(install-distribution-stripped)
13   foreach(target ${LLVM_DISTRIBUTION_COMPONENTS}
14       ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
15     if(TARGET ${target})
16       add_dependencies(distribution ${target})
17     else()
18       message(SEND_ERROR "Specified distribution component '${target}' doesn't have a target")
19     endif()
21     if(TARGET install-${target})
22       add_dependencies(install-distribution install-${target})
23     else()
24       message(SEND_ERROR "Specified distribution component '${target}' doesn't have an install target")
25     endif()
27     if(TARGET install-${target}-stripped)
28       add_dependencies(install-distribution-stripped install-${target}-stripped)
29     else()
30       message(SEND_ERROR
31               "Specified distribution component '${target}' doesn't have an install-stripped target."
32               " Its installation target creation should be changed to use add_llvm_install_targets,"
33               " or you should manually create the 'install-${target}-stripped' target.")
34     endif()
35   endforeach()
36 endfunction()