From 6ca530c966193a9508a650373526188b84c46a95 Mon Sep 17 00:00:00 2001 From: Clifford Yapp <238416+starseeker@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:22:55 -0500 Subject: [PATCH] Release mode building isn't working for assetimport library due to this line. --- assetimport/assetimport.patch | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/assetimport/assetimport.patch b/assetimport/assetimport.patch index efd9270a..7293d970 100644 --- a/assetimport/assetimport.patch +++ b/assetimport/assetimport.patch @@ -170,10 +170,22 @@ diff -Naur assimp/cmake-modules/FindZLIB.cmake assimp_BLD/cmake-modules/FindZLIB + INTERFACE_INCLUDE_DIRECTORIES "${ZLIB_INCLUDE_DIRS}") + endif() +endif() -diff -Naur assimp/code/CMakeLists.txt assimp_BLD/code/CMakeLists.txt ---- assimp/code/CMakeLists.txt 2023-09-20 21:22:27.813575948 -0400 -+++ assimp_BLD/code/CMakeLists.txt 2023-09-23 11:28:29.116406490 -0400 -@@ -898,17 +898,18 @@ +diff -Naur assimp/code/AssetLib/MDL/MDLFileData.h ASSETIMPORT_BLD/code/AssetLib/MDL/MDLFileData.h +--- assimp/code/AssetLib/MDL/MDLFileData.h 2024-03-06 16:18:12.369764492 -0500 ++++ ASSETIMPORT_BLD/code/AssetLib/MDL/MDLFileData.h 2024-03-06 16:18:36.229358252 -0500 +@@ -876,7 +876,7 @@ + : apcOutBones(), + iNum() + { +- abNeedMaterials.reserve(10); ++ //abNeedMaterials.reserve(10); + } + + //! Destruction: properly delete all allocated resources +diff -Naur assimp/code/CMakeLists.txt ASSETIMPORT_BLD/code/CMakeLists.txt +--- assimp/code/CMakeLists.txt 2024-03-06 16:18:12.377764357 -0500 ++++ ASSETIMPORT_BLD/code/CMakeLists.txt 2024-03-06 16:15:11.452846911 -0500 +@@ -906,17 +906,18 @@ SOURCE_GROUP( Extra FILES ${Extra_SRCS}) # pugixml