mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
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).
This commit is contained in:
parent
46861bc41e
commit
5ef8d1bfbf
@ -37,7 +37,9 @@ if ("${INPUTEXT}" STREQUAL ".c" AND "${OUTPUTEXT}" STREQUAL ".out")
|
|||||||
|
|
||||||
set(INCLUDES "-I${INCDIR}")
|
set(INCLUDES "-I${INCDIR}")
|
||||||
if(ZLIBINCDIR)
|
if(ZLIBINCDIR)
|
||||||
list(APPEND INCLUDES "-I${ZLIBINCDIR}")
|
foreach(dir ${ZLIBINCDIR})
|
||||||
|
list(APPEND INCLUDES "-I${dir}")
|
||||||
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PNG_PREFIX)
|
if(PNG_PREFIX)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user