uavcan cmake FATAL_ERROR if platform isn't set

- this indicates a build system error
This commit is contained in:
Daniel Agar
2019-05-31 12:20:50 -04:00
committed by GitHub
parent 43e3fc707d
commit c8ea198a78
+4
View File
@@ -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()