Skip to content

Commit

Permalink
deps(PNG): force build recipe to always build dynamic libs
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Lewis <[email protected]>
  • Loading branch information
zachlewis committed Sep 24, 2024
1 parent fb520a7 commit aa7afc1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cmake/build_PNG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit aa7afc1

Please sign in to comment.