Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
585 B

# SPDX-License-Identifier: Apache-2.0
# The purpose of this script is to ensure that no runners targets contains
# additional dependencies.
#
# If the target contains dependencies, an error will be printed.
#
# Arguments to the script
#
# TARGET: The target being checked.
# DEPENDENCIES: List containing dependencies on target.
if(DEPENDENCIES)
string(REPLACE ";" " " DEPENDENCIES "${DEPENDENCIES}")
message(FATAL_ERROR
"`${TARGET}` cannot have dependencies, please remove "
"`add_dependencies(${TARGET} ${DEPENDENCIES})` in build system."
)
endif()