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
There is a lot of code in TriBITS that passed strings as enums like:
if (<varName> STREQUAL "<valueA>")
...
elseif (<varName> STREQUAL "<valueB>")
...
elseif (<varName> STREQUAL "<valueC>")
...
else()
message(FATAL_ERROR "Error, the value of <varName>='${<varName>}' is not in the allowed list ...")
endif()
Description
There is a lot of code in TriBITS that passed strings as enums like:
It may help to replace this with a function like:
where the list of valid values var name
<listOfValidValues>
could be empty.NOTE: Something like this was suggested by @KyleFromKitware in #560 (review).
The text was updated successfully, but these errors were encountered: