diff --git a/src/cmake/build_PNG.cmake b/src/cmake/build_PNG.cmake index 7e41417b9b..b7ef92c6b5 100644 --- a/src/cmake/build_PNG.cmake +++ b/src/cmake/build_PNG.cmake @@ -10,7 +10,7 @@ set_cache (PNG_BUILD_VERSION 1.6.44 "PNG version for local builds") set (PNG_GIT_REPOSITORY "https://github.com/glennrp/libpng") set (PNG_GIT_TAG "v${PNG_BUILD_VERSION}") -set_cache (PNG_BUILD_SHARED_LIBS OFF #${LOCAL_BUILD_SHARED_LIBS_DEFAULT} +set_cache (PNG_BUILD_SHARED_LIBS ON #${LOCAL_BUILD_SHARED_LIBS_DEFAULT} DOC "Should execute a local PNG build, if necessary, build shared libraries" ADVANCED) string (MAKE_C_IDENTIFIER ${PNG_BUILD_VERSION} PNG_VERSION_IDENT) @@ -41,9 +41,7 @@ if (${PNG_BUILD_VERSION} VERSION_GREATER_EQUAL 1.6.44) message (STATUS "PNG ${PNG_BUILD_VERSION} >= 1.6.44, refinding with CMake Config") set(_refind_config CONFIG) endif () -set(PNG_REFIND_ARGS ${_refind_config} - COMPONENTS STATIC - ) +set(PNG_REFIND_ARGS ${_refind_config}) if (PNG_BUILD_SHARED_LIBS) install_local_dependency_libs (PNG PNG)