diff --git a/ogre/CMakeLists.txt b/ogre/CMakeLists.txt index 80be6753..4b410fc5 100644 --- a/ogre/CMakeLists.txt +++ b/ogre/CMakeLists.txt @@ -15,6 +15,7 @@ ExternalProject_Add( ogredeps URL https://github.com/AnotherFoxGuy/ogredeps/archive/17f4c583c82559074a96f1436670a4f10961b9d9.tar.gz URL_MD5 d5425da9f4ffa9f24dd021e32a8665ad + PATCH_COMMAND ${PATCH_TOOL_SCRIPT} ${CMAKE_CURRENT_SOURCE_DIR}/ogredeps-freeimage-binaryfunction.patch CMAKE_ARGS -DOGREDEPS_BUILD_AMD_QBS=OFF -DOGREDEPS_BUILD_NVIDIA_NVAPI=OFF diff --git a/ogre/ogredeps-freeimage-binaryfunction.patch b/ogre/ogredeps-freeimage-binaryfunction.patch new file mode 100644 index 00000000..93e92583 --- /dev/null +++ b/ogre/ogredeps-freeimage-binaryfunction.patch @@ -0,0 +1,13 @@ +diff --git a/src/FreeImage/Source/OpenEXR/IlmImf/ImfAttribute.cpp b/src/FreeImage/Source/OpenEXR/IlmImf/ImfAttribute.cpp +index feb5f83..5cb036e 100644 +--- a/src/FreeImage/Source/OpenEXR/IlmImf/ImfAttribute.cpp ++++ b/src/FreeImage/Source/OpenEXR/IlmImf/ImfAttribute.cpp +@@ -61,7 +61,7 @@ Attribute::~Attribute () {} + + namespace { + +-struct NameCompare: std::binary_function ++struct NameCompare + { + bool + operator () (const char *x, const char *y) const \ No newline at end of file