2 if(LLVM_DISTRIBUTION_COMPONENTS)
4 message(FATAL_ERROR "LLVM_DISTRIBUTION_COMPONENTS cannot be specified with multi-configuration generators (i.e. Xcode or Visual Studio)")
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})
16 add_dependencies(distribution ${target})
18 message(SEND_ERROR "Specified distribution component '${target}' doesn't have a target")
21 if(TARGET install-${target})
22 add_dependencies(install-distribution install-${target})
24 message(SEND_ERROR "Specified distribution component '${target}' doesn't have an install target")
27 if(TARGET install-${target}-stripped)
28 add_dependencies(install-distribution-stripped install-${target}-stripped)
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.")