Disable png tests and dynamic library caching values

This commit is contained in:
David Capello 2016-04-01 09:17:40 -03:00
parent 80a649dc12
commit 72b47e061a

View File

@ -18,10 +18,11 @@ if(NOT USE_SHARED_ZLIB)
endif()
if(NOT USE_SHARED_LIBPNG)
set(SKIP_INSTALL_ALL on)
set(PNG_SHARED off)
set(PNG_STATIC on)
set(PNG_TESTS off)
set(SKIP_INSTALL_ALL ON)
# We only need the static version of libpng
set(PNG_SHARED OFF CACHE BOOL "Build shared lib")
set(PNG_STATIC ON CACHE BOOL "Build static lib")
set(PNG_TESTS OFF CACHE BOOL "Build libpng tests")
set(ZLIB_INCLUDE_DIR "${ZLIB_INCLUDE_DIRS}")
add_subdirectory(libpng)
endif()