diff --git a/scripts/genout.cmake.in b/scripts/genout.cmake.in index 02290f32a..f52f23966 100644 --- a/scripts/genout.cmake.in +++ b/scripts/genout.cmake.in @@ -37,7 +37,9 @@ if ("${INPUTEXT}" STREQUAL ".c" AND "${OUTPUTEXT}" STREQUAL ".out") set(INCLUDES "-I${INCDIR}") if(ZLIBINCDIR) - list(APPEND INCLUDES "-I${ZLIBINCDIR}") + foreach(dir ${ZLIBINCDIR}) + list(APPEND INCLUDES "-I${dir}") + endforeach() endif() if(PNG_PREFIX)