Skip to content

Commit

Permalink
cmake: treat snippet warning as error
Browse files Browse the repository at this point in the history
A pristine build is needed when snippets are changed. Currently
this only triggers a warning which can easily be missed.

Signed-off-by: Andriy Gelman <[email protected]>
  • Loading branch information
talih0 committed Aug 31, 2024
1 parent 494f880 commit 3a52766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3328,7 +3328,7 @@ function(zephyr_check_cache variable)
# without cleaning first
if(cli_argument)
if(NOT ((CACHED_${variable} STREQUAL cli_argument) OR (${variable}_DEPRECATED STREQUAL cli_argument)))
message(WARNING "The build directory must be cleaned pristinely when "
message(FATAL_ERROR "The build directory must be cleaned pristinely when "
"changing ${variable_text},\n"
"Current value=\"${CACHED_${variable}}\", "
"Ignored value=\"${cli_argument}\"")
Expand Down

0 comments on commit 3a52766

Please sign in to comment.