[lodepng] Fix cannot open include file "lodepng.h" (#22007)

* [lodepng] Fix cannot open include file "lodepng.h"

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
LilyWangLL 2021-12-15 02:47:00 +08:00 committed by GitHub
parent 404819d78f
commit dcde522901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@ project(lodepng)
add_library(lodepng lodepng.cpp)
target_include_directories(lodepng PUBLIC
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
$<INSTALL_INTERFACE:include>
)
file(WRITE "${CMAKE_BINARY_DIR}/lodepng-config.cmake" "include(\"\${CMAKE_CURRENT_LIST_DIR}/lodepng-targets.cmake\")")
@ -15,7 +15,7 @@ install(EXPORT lodepng-targets DESTINATION share/lodepng/)
add_library(lodepng-c lodepng.c)
target_include_directories(lodepng-c PUBLIC
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
$<INSTALL_INTERFACE:include>
)
file(WRITE "${CMAKE_BINARY_DIR}/lodepng-c-config.cmake" "include(\"\${CMAKE_CURRENT_LIST_DIR}/lodepng-c-targets.cmake\")")

View File

@ -1,6 +1,7 @@
{
"name": "lodepng",
"version-date": "2021-12-04",
"port-version": 1,
"description": "PNG encoder and decoder in C++",
"homepage": "https://github.com/lvandeve/lodepng",
"dependencies": [

View File

@ -4154,7 +4154,7 @@
},
"lodepng": {
"baseline": "2021-12-04",
"port-version": 0
"port-version": 1
},
"lodepng-c": {
"baseline": "deprecated",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "744376b1eace2fdab47d24858d7d1e79f32eefa3",
"version-date": "2021-12-04",
"port-version": 1
},
{
"git-tree": "454b1276a4855fba7699cbb07ca783d32d1baf7c",
"version-date": "2021-12-04",