Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-06-26 20:50:38 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-06-26 20:50:38 +0300
commitd93558e91488f1c110a3a2e2e3399e2917f77e13 (patch)
treeee7c1d372aaad4f7657d3be986e6d0997b3df935 /build_files/build_environment/CMakeLists.txt
parenta7e32dbcb08c452fd170fcc71022278bb7985e72 (diff)
Make deps: Fix detection/linking of PugiXML on Linux
This time both full `make deps` and final compilation is tested on a freshly installed CentOS 7. The thing is: OpenImageIO is not configured to use an external PugiXML library, so it was compiling its own. At the same time the OpenShadingLanguage library was commanded to use an externally compiled PugiXML. This caused some sort of discrepancy which lead to Blender-link-time errors. Could be linking error, could be namespace related, could be ABI related. In any case since we do have PugiXML in the OpenImageIO already lets just stick to it.
Diffstat (limited to 'build_files/build_environment/CMakeLists.txt')
-rw-r--r--build_files/build_environment/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/build_files/build_environment/CMakeLists.txt b/build_files/build_environment/CMakeLists.txt
index c21ed826736..e4fe7d90176 100644
--- a/build_files/build_environment/CMakeLists.txt
+++ b/build_files/build_environment/CMakeLists.txt
@@ -91,7 +91,11 @@ include(cmake/openvdb.cmake)
include(cmake/python.cmake)
include(cmake/python_site_packages.cmake)
include(cmake/numpy.cmake)
-include(cmake/pugixml.cmake)
+if(UNIX AND NOT APPLE)
+ # Rely on PugiXML compiled with OpenImageIO
+else()
+ include(cmake/pugixml.cmake)
+endif()
if(WITH_WEBP)
include(cmake/webp.cmake)