-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libpng] Update to 1.6.44, add feature tools (#42058)
Co-authored-by: Kai Pastor <[email protected]>
- Loading branch information
Showing
9 changed files
with
65 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 3857b82..4c68989 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -963,9 +963,9 @@ | ||
FILES ${PNGSUITE_PNGS}) | ||
endif() | ||
|
||
-if(PNG_SHARED AND PNG_TOOLS) | ||
+if(PNG_TOOLS) | ||
add_executable(pngfix ${pngfix_sources}) | ||
- target_link_libraries(pngfix PRIVATE png_shared) | ||
+ target_link_libraries(pngfix PRIVATE $<TARGET_NAME_IF_EXISTS:png_shared> $<TARGET_NAME_IF_EXISTS:png_static>) # in vcpkg there's only one | ||
set(PNG_BIN_TARGETS pngfix) | ||
|
||
add_executable(png-fix-itxt ${png_fix_itxt_sources}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage" usage) | ||
message(WARNING "find_package(libpng) is deprecated.\n${usage}") | ||
|
||
include(CMakeFindDependencyMacro) | ||
find_dependency(PNG CONFIG) | ||
|
||
if(NOT TARGET png_shared) | ||
add_library(png_shared ALIAS PNG::PNG) | ||
endif() | ||
if(NOT TARGET png_static) | ||
add_library(png_static ALIAS PNG::PNG) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
The package libpng is compatible with built-in CMake targets: | ||
libpng provides CMake targets: | ||
|
||
find_package(PNG REQUIRED) | ||
target_link_libraries(main PRIVATE PNG::PNG) | ||
find_package(PNG REQUIRED) | ||
target_link_libraries(main PRIVATE PNG::PNG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters