1set(LEGEND_REVISIONS "25hdd" "25ssd" "35") 2if (NOT DEFINED BOARD_REVISION) 3 set(BOARD_REVISION "25hdd") 4else() 5 if (NOT BOARD_REVISION IN_LIST LEGEND_REVISIONS) 6 message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for Legend. Accepted revisions: ${LEGEND_REVISIONS}") 7 endif() 8endif() 9