From 40e59b90d889dfa8b14b7f3e12f8ae6c7e3c5c29 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 31 May 2019 11:08:20 -0400 Subject: [PATCH] uavcan cmake FATAL_ERROR if platform isn't set - this indicates a build system error --- src/drivers/uavcan/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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()