You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(FATAL_ERROR"blt_list_append() requires ELEMENTS to be specified and non-empty" )
endif()
Is this the desired behavior? Or would it be better if appending an empty string to a list was a no-op?
Ben Liu suggested some additional options:
blt_list_append should emit a warning in this case since this is often unexpected behavior
blt_list_append should take an (optional) additional parameter regarding how to treat this case, e.g. FATAL_ERROR, warning or no-op. If we pursue this option, we'd also need to decide on the default behavior.
@white238 noted that CMake's (list(APPEND <empty string>) is a no-op
The text was updated successfully, but these errors were encountered:
The Axom project recently fixed a bug related to
ENV
variables that were not correctly setup -- LLNL/axom#1168It revealed that
blt_list_append
generates aFATAL_ERROR
when attempting to append empty strings to a list.blt/cmake/BLTInstallableMacros.cmake
Lines 40 to 42 in d57f799
Is this the desired behavior? Or would it be better if appending an empty string to a list was a no-op?
Ben Liu suggested some additional options:
blt_list_append
should emit a warning in this case since this is often unexpected behaviorblt_list_append
should take an (optional) additional parameter regarding how to treat this case, e.g.FATAL_ERROR
, warning or no-op. If we pursue this option, we'd also need to decide on the default behavior.@white238 noted that CMake's
(list(APPEND <empty string>)
is a no-opThe text was updated successfully, but these errors were encountered: