From 5ef8d1bfbf4870dc3f3e7ab73933a0b5aef05d32 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 31 Mar 2016 14:18:27 -0300 Subject: [PATCH] Add support to use multiple directories in ZLIBINCDIR variable For example, ZLIB_INCLUDE_DIR might include the directory where zlib.h is located (source dir) and the zconf.h file is located (binary dir). --- scripts/genout.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/genout.cmake.in b/scripts/genout.cmake.in index d57810b22..326195919 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)