It's possible for multiple distribution components to have missing
targets, and it's a lot more convenient to get all those errors in one
shot rather than having to fix them individually.
llvm-svn: 317148
if(TARGET ${target})
add_dependencies(distribution ${target})
else()
- message(FATAL_ERROR "Specified distribution component '${target}' doesn't have a target")
+ message(SEND_ERROR "Specified distribution component '${target}' doesn't have a target")
endif()
if(TARGET install-${target})
add_dependencies(install-distribution install-${target})
else()
- message(FATAL_ERROR "Specified distribution component '${target}' doesn't have an install target")
+ message(SEND_ERROR "Specified distribution component '${target}' doesn't have an install target")
endif()
endforeach()
endif()