From 72b47e061aa91ac53bb25c4f7effba966e87c4cf Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 1 Apr 2016 09:17:40 -0300 Subject: [PATCH] Disable png tests and dynamic library caching values --- third_party/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 64376e73e..dd95a751a 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -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()