From c8ea198a7839793a06c4729a1d7c6027c03e1001 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 31 May 2019 12:20:50 -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 69c21f2a34..bc504b8455 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()