Skip to content

Commit 990eb5f

Browse files
Warning when extra-output is requested w/o filename (#8671)
Co-authored-by: Alex Reinking <[email protected]>
1 parent 5d7bca8 commit 990eb5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/HalideGeneratorHelpers.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,14 @@ function(add_halide_library TARGET)
493493
message(AUTHOR_WARNING "Arguments to add_halide_library were not recognized: ${ARG_UNPARSED_ARGUMENTS}")
494494
endif ()
495495

496+
set(nonEmptyArgs ${oneValueArgs})
497+
list(REMOVE_ITEM nonEmptyArgs AUTOSCHEDULER FUNCTION_NAME GENERATOR NAMESPACE USE_RUNTIME)
498+
foreach (name IN LISTS ARG_KEYWORDS_MISSING_VALUES)
499+
if (name IN_LIST nonEmptyArgs)
500+
message(AUTHOR_WARNING "The argument ${name} passed to add_halide_library is undefined")
501+
endif ()
502+
endforeach ()
503+
496504
if (ARG_C_BACKEND AND ARG_TARGETS)
497505
message(AUTHOR_WARNING "The C backend sources will be compiled with the current CMake toolchain.")
498506
endif ()

0 commit comments

Comments
 (0)