diff --git a/src/drivers/uavcan/CMakeLists.txt b/src/drivers/uavcan/CMakeLists.txt index 69c21f2a347e..bc504b84552f 100644 --- a/src/drivers/uavcan/CMakeLists.txt +++ b/src/drivers/uavcan/CMakeLists.txt @@ -45,6 +45,10 @@ if(CONFIG_ARCH_CHIP) endif() endif() +if(NOT DEFINED UAVCAN_PLATFORM) + message(FATAL_ERROR "UAVCAN_PLATFORM not set") +endif() + if(NOT config_uavcan_num_ifaces) message(FATAL_ERROR "config_uavcan_num_ifaces not set") endif()