Skip to content

Commit

Permalink
uavcan cmake FATAL_ERROR if platform isn't set
Browse files Browse the repository at this point in the history
 - this indicates a build system error
  • Loading branch information
dagar authored May 31, 2019
1 parent 43e3fc7 commit c8ea198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/uavcan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c8ea198

Please sign in to comment.