mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 23:06:54 +08:00
Update png library (formatting, CMake)
This is a minor tweak.
This commit is contained in:
+5
-4
@@ -34,9 +34,10 @@ set(PNG_SRCS
|
||||
)
|
||||
|
||||
#######################################################################
|
||||
# Note: This file is only used if we build the bundled PNG library and
|
||||
# if we do this we MUST also build and use the bundled ZLIB, hence
|
||||
# we MUST also link to the bundled ZLIB (see below).
|
||||
# Note: This file is used only if we build the bundled PNG library,
|
||||
# and if we do this we MUST also build and use the *bundled* ZLIB,
|
||||
# hence we MUST also link against the bundled ZLIB (see below).
|
||||
# There's no need to check which ZLIB version to use in this context.
|
||||
#######################################################################
|
||||
|
||||
#######################################################################
|
||||
@@ -89,7 +90,7 @@ target_link_libraries(fltk_png PUBLIC fltk_z)
|
||||
if (OPTION_BUILD_SHARED_LIBS)
|
||||
|
||||
FL_ADD_LIBRARY (fltk_png SHARED "${PNG_SRCS}")
|
||||
target_link_libraries (fltk_png_SHARED fltk_z_SHARED)
|
||||
target_link_libraries (fltk_png_SHARED PUBLIC fltk_z_SHARED)
|
||||
|
||||
endif ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user