-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See if we can remove the FindZLIB.cmake customization patch from asse…
…timport
- Loading branch information
1 parent
690b4b0
commit 749a13c
Showing
4 changed files
with
100 additions
and
271 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
diff -Naur assimp/CMakeLists.txt ASSETIMPORT_BLD/CMakeLists.txt | ||
--- assimp/CMakeLists.txt 2024-10-09 16:05:51.701808399 -0400 | ||
+++ ASSETIMPORT_BLD/CMakeLists.txt 2024-10-09 16:05:06.412473372 -0400 | ||
@@ -37,6 +37,7 @@ | ||
SET(CMAKE_POLICY_DEFAULT_CMP0012 NEW) | ||
SET(CMAKE_POLICY_DEFAULT_CMP0074 NEW) | ||
SET(CMAKE_POLICY_DEFAULT_CMP0092 NEW) | ||
+SET(CMAKE_POLICY_DEFAULT_CMP0144 NEW) | ||
|
||
CMAKE_MINIMUM_REQUIRED( VERSION 3.22 ) | ||
|
||
diff -Naur assimp/code/CMakeLists.txt ASSETIMPORT_BLD/code/CMakeLists.txt | ||
--- assimp/code/CMakeLists.txt 2024-10-09 16:05:51.702808384 -0400 | ||
+++ ASSETIMPORT_BLD/code/CMakeLists.txt 2024-10-09 16:05:06.415473328 -0400 | ||
@@ -1050,17 +1050,18 @@ | ||
ENDIF() # IF (ASSIMP_BUILD_USD_IMPORTER) | ||
|
||
# pugixml | ||
-IF(ASSIMP_HUNTER_ENABLED) | ||
- hunter_add_package(pugixml) | ||
- find_package(pugixml CONFIG REQUIRED) | ||
-ELSE() | ||
- SET( Pugixml_SRCS | ||
- ../contrib/pugixml/src/pugiconfig.hpp | ||
- ../contrib/pugixml/src/pugixml.hpp | ||
- ) | ||
- INCLUDE_DIRECTORIES("../contrib/pugixml/src") | ||
- SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS}) | ||
-ENDIF() | ||
+#IF(ASSIMP_HUNTER_ENABLED) | ||
+# hunter_add_package(pugixml) | ||
+# find_package(pugixml CONFIG REQUIRED) | ||
+#ELSE() | ||
+# SET( Pugixml_SRCS | ||
+# ../contrib/pugixml/src/pugiconfig.hpp | ||
+# ../contrib/pugixml/src/pugixml.hpp | ||
+# ) | ||
+# INCLUDE_DIRECTORIES("../contrib/pugixml/src") | ||
+# SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS}) | ||
+#ENDIF() | ||
+find_package(pugixml REQUIRED) | ||
|
||
# utf8 | ||
IF(ASSIMP_HUNTER_ENABLED) | ||
@@ -1414,6 +1415,10 @@ | ||
$<INSTALL_INTERFACE:${ASSIMP_INCLUDE_INSTALL_DIR}> | ||
) | ||
|
||
+if (TARGET pugixml) | ||
+ set(PUGIXML_LIBRARIES pugixml) | ||
+endif (TARGET pugixml) | ||
+ | ||
IF(ASSIMP_HUNTER_ENABLED) | ||
TARGET_LINK_LIBRARIES(assimp | ||
PUBLIC | ||
@@ -1435,7 +1440,7 @@ | ||
target_link_libraries(assimp PRIVATE ${draco_LIBRARIES}) | ||
endif() | ||
ELSE() | ||
- TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES}) | ||
+ TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${PUGIXML_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES}) | ||
if (ASSIMP_BUILD_DRACO) | ||
target_link_libraries(assimp ${draco_LIBRARIES}) | ||
endif() | ||
@@ -1453,6 +1458,7 @@ | ||
TARGET_LINK_LIBRARIES(assimp ${C4D_EXTRA_LIBRARIES}) | ||
ENDIF () | ||
|
||
+if(0) | ||
if( MSVC ) | ||
# in order to prevent DLL hell, each of the DLLs have to be suffixed with the major version and msvc prefix | ||
# CMake 3.12 added a variable for this | ||
@@ -1499,11 +1505,12 @@ | ||
target_compile_definitions(assimp PUBLIC WindowsStore) | ||
TARGET_LINK_LIBRARIES(assimp advapi32) | ||
endif() | ||
+endif(0) | ||
|
||
SET_TARGET_PROPERTIES( assimp PROPERTIES | ||
VERSION ${ASSIMP_VERSION} | ||
SOVERSION ${ASSIMP_SOVERSION} # use full version | ||
- OUTPUT_NAME assimp${LIBRARY_SUFFIX} | ||
+ #OUTPUT_NAME assimp${LIBRARY_SUFFIX} | ||
) | ||
|
||
if (APPLE) |
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,11 @@ | ||
--- assimp/code/AssetLib/MDL/MDLFileData.h 2024-10-09 16:05:51.708808296 -0400 | ||
+++ ASSETIMPORT_BLD/code/AssetLib/MDL/MDLFileData.h 2024-10-09 16:05:06.413473357 -0400 | ||
@@ -876,7 +876,7 @@ | ||
: apcOutBones(), | ||
iNum() | ||
{ | ||
- abNeedMaterials.reserve(10); | ||
+ //abNeedMaterials.reserve(10); | ||
} | ||
|
||
//! Destruction: properly delete all allocated resources |