cmake: Account for missing partition CSV file at cmake runtime

Avoid either breaking menuconfig (if cmake fails), or producing bad build output (if cmake succeeds
but no flashing offsets, etc. were generated.)
This commit is contained in:
Angus Gratton
2018-08-27 11:55:04 +08:00
committed by Angus Gratton
parent 071aaea66b
commit cb158f1194
3 changed files with 24 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
# 'cmake -E' doesn't have a way to fail outright, so run this script
# with 'cmake -P' to fail a build.
message(FATAL_ERROR "Failing the build (see errors on lines above)")