[Bf-blender-cvs] [ad6f5117ad8] blender-v3.3-release: Build: add missing include for opencolorio
Campbell Barton
noreply at git.blender.org
Thu Nov 3 15:04:27 CET 2022
Commit: ad6f5117ad8548e7c3bc77ce6bdc6dab75e92dc8
Author: Campbell Barton
Date: Tue Sep 27 11:12:06 2022 +1000
Branches: blender-v3.3-release
https://developer.blender.org/rBad6f5117ad8548e7c3bc77ce6bdc6dab75e92dc8
Build: add missing include for opencolorio
OpenColorIO failed to build on Linux+GCC-12.2 because of strlen() use.
===================================================================
M build_files/build_environment/patches/opencolorio.diff
===================================================================
diff --git a/build_files/build_environment/patches/opencolorio.diff b/build_files/build_environment/patches/opencolorio.diff
index 2255cbc02ed..278dfe0d857 100644
--- a/build_files/build_environment/patches/opencolorio.diff
+++ b/build_files/build_environment/patches/opencolorio.diff
@@ -14,3 +14,15 @@ index 7b894a45..92618215 100644
)
if(CMAKE_TOOLCHAIN_FILE)
set(pystring_CMAKE_ARGS
+--- a/src/OpenColorIO/FileRules.cpp
++++ b/src/OpenColorIO/FileRules.cpp
+@@ -7,6 +7,9 @@
+ #include <regex>
+ #include <sstream>
+
++/* NOTE: this has been applied up-stream, this edit can be removed after upgrading OpenColorIO. */
++#include <cstring>
++
+ #include <OpenColorIO/OpenColorIO.h>
+
+ #include "CustomKeys.h"
More information about the Bf-blender-cvs
mailing list