mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 05:39:30 +08:00
501e44e02c
* [qt5-location] Rename vendored libs to avoid conflicts * [qt5-location] Use upstream patch * [qt5-location] Replace / in patch url with %2F * Update ports/qt5-location/CONTROL * [assimp][irrxml] Remove outdated version of irrxml; redirect assimp at newer irrlicht * [assimp] Apply skipped patch irrlicht.patch Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
83 lines
2.6 KiB
Diff
83 lines
2.6 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 2ec072d..3c8b5ab 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -132,7 +132,6 @@ OPTION ( IGNORE_GIT_HASH
|
|
|
|
find_package(Stb REQUIRED)
|
|
include_directories(${Stb_INCLUDE_DIR})
|
|
-find_package(irrXML CONFIG REQUIRED)
|
|
find_path(UTF8_INCLUDE_DIRS "utf8.h")
|
|
include_directories(${UTF8_INCLUDE_DIRS})
|
|
find_package(RapidJSON CONFIG REQUIRED)
|
|
@@ -389,7 +388,7 @@ ENDIF( BUILD_DOCS )
|
|
|
|
# Look for system installed irrXML
|
|
IF ( SYSTEM_IRRXML )
|
|
- FIND_PACKAGE( irrXML REQUIRED )
|
|
+ FIND_PACKAGE( irrlicht CONFIG REQUIRED )
|
|
ENDIF( SYSTEM_IRRXML )
|
|
|
|
# Search for external dependencies, and build them from source if not found
|
|
diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
|
|
index 17fcea7..f08f59f 100644
|
|
--- a/code/CMakeLists.txt
|
|
+++ b/code/CMakeLists.txt
|
|
@@ -862,7 +862,7 @@ SET( Extra_SRCS
|
|
SOURCE_GROUP( Extra FILES ${Extra_SRCS})
|
|
|
|
# irrXML
|
|
- find_package(irrXML CONFIG REQUIRED)
|
|
+ find_package(irrlicht CONFIG REQUIRED)
|
|
|
|
# polyclipping
|
|
find_package(polyclipping CONFIG REQUIRED)
|
|
@@ -1033,7 +1033,7 @@ TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
|
|
|
|
TARGET_LINK_LIBRARIES(assimp
|
|
polyclipping::polyclipping
|
|
- irrXML::irrXML
|
|
+ Irrlicht
|
|
minizip::minizip
|
|
ZLIB::ZLIB
|
|
kubazip::kubazip
|
|
diff --git a/code/X3D/FIReader.cpp b/code/X3D/FIReader.cpp
|
|
index 31d9aba..2c96052 100644
|
|
--- a/code/X3D/FIReader.cpp
|
|
+++ b/code/X3D/FIReader.cpp
|
|
@@ -654,8 +654,8 @@ public:
|
|
return currentNodeType;
|
|
}
|
|
|
|
- virtual int getAttributeCount() const /*override*/ {
|
|
- return static_cast<int>(attributes.size());
|
|
+ virtual unsigned int getAttributeCount() const /*override*/ {
|
|
+ return static_cast<unsigned int>(attributes.size());
|
|
}
|
|
|
|
virtual const char* getAttributeName(int idx) const /*override*/ {
|
|
@@ -1733,7 +1733,7 @@ public:
|
|
return reader->getNodeType();
|
|
}
|
|
|
|
- virtual int getAttributeCount() const /*override*/ {
|
|
+ virtual unsigned int getAttributeCount() const /*override*/ {
|
|
return reader->getAttributeCount();
|
|
}
|
|
|
|
diff --git a/include/assimp/irrXMLWrapper.h b/include/assimp/irrXMLWrapper.h
|
|
index 77cfd5e..ba584a0 100644
|
|
--- a/include/assimp/irrXMLWrapper.h
|
|
+++ b/include/assimp/irrXMLWrapper.h
|
|
@@ -133,8 +133,8 @@ public:
|
|
|
|
// ----------------------------------------------------------------------------------
|
|
//! Returns size of file in bytes
|
|
- virtual int getSize() {
|
|
- return (int)data.size();
|
|
+ virtual long getSize() const override {
|
|
+ return (long)data.size();
|
|
}
|
|
|
|
private:
|