summaryrefslogtreecommitdiff
path: root/scripts/genout.cmake.in
diff options
context:
space:
mode:
authorDavid Capello <davidcapello@gmail.com>2016-03-31 14:18:27 -0300
committerDavid Capello <davidcapello@gmail.com>2016-03-31 14:18:27 -0300
commit5ef8d1bfbf4870dc3f3e7ab73933a0b5aef05d32 (patch)
tree1b6a64201fa68c206d40df77bf31488799d28c78 /scripts/genout.cmake.in
parent46861bc41eec317df8490087feebaa47348d5a6f (diff)
downloadlibpng-5ef8d1bfbf4870dc3f3e7ab73933a0b5aef05d32.tar.gz
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).
Diffstat (limited to 'scripts/genout.cmake.in')
-rw-r--r--scripts/genout.cmake.in4
1 files changed, 3 insertions, 1 deletions
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)