I want to check whether a lists contains a specific entry like in the following code snipplet:
macro(foo) if ($(ARGN} contains \"bar\") ... endif endmacro() >
Fewer lines:
if (";${ARGN};" MATCHES ";bar;") # ... endif()
But see the IN_LIST syntax from @sakra for a more-modern syntax.
IN_LIST