[openfbx] Miniz dep was removed in latest version and replaced by libdeflate (#42694)

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
This commit is contained in:
Eviral 2024-12-19 22:14:06 +01:00 committed by GitHub
parent 5a1b13ca83
commit 8e78590ad7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 6 deletions

View File

@ -6,10 +6,11 @@ set(CMAKE_CXX_STANDARD 11)
include(GNUInstallDirs)
find_package(miniz REQUIRED)
find_package(libdeflate REQUIRED)
add_library(openfbx src/ofbx.cpp)
target_link_libraries(openfbx PRIVATE miniz::miniz)
target_link_libraries(openfbx PRIVATE $<IF:$<TARGET_EXISTS:libdeflate::libdeflate_shared>,libdeflate::libdeflate_shared,libdeflate::libdeflate_static>)
target_include_directories(openfbx
PUBLIC

View File

@ -1,8 +1,8 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(miniz)
find_dependency(libdeflate)
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-openfbxTargets.cmake")
check_required_components(miniz)
check_required_components(libdeflate)

View File

@ -1,11 +1,12 @@
{
"name": "openfbx",
"version-date": "2024-05-08",
"port-version": 1,
"description": "Lightweight open source FBX importer",
"homepage": "https://github.com/nem0/OpenFBX",
"license": "MIT",
"dependencies": [
"miniz",
"libdeflate",
{
"name": "vcpkg-cmake",
"host": true

View File

@ -6694,7 +6694,7 @@
},
"openfbx": {
"baseline": "2024-05-08",
"port-version": 0
"port-version": 1
},
"openfx": {
"baseline": "1.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "91f58df63150443bd8e644f319361162031b88c7",
"version-date": "2024-05-08",
"port-version": 1
},
{
"git-tree": "a8cefcba9bae878776bff95c9f078ffa58d5f15a",
"version-date": "2024-05-08",