cmake: utility to create a failing target

This commit is contained in:
Renz Christian Bagaporo
2020-03-02 07:15:34 +05:00
parent 8e1442f0e7
commit f64a3c2a66
2 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -1,4 +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)")
message(FATAL_ERROR "$ENV{FAIL_MESSAGE}")