From 42dff6cc2ebe21bee401bc115139c4f62aabc6f5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 13 Nov 2017 10:40:19 +0100 Subject: Cycles: Fix compilation error with OIIO compiled against system PugiXML --- intern/cycles/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern/cycles/CMakeLists.txt') diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 5844c2480d6..dbf1bcece16 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -209,6 +209,10 @@ if(WITH_CYCLES_DEBUG) add_definitions(-DWITH_CYCLES_DEBUG) endif() +if(NOT OPENIMAGEIO_PUGIXML_FOUND) + add_definitions(-DWITH_SYSTEM_PUGIXML) +endif() + include_directories( SYSTEM ${BOOST_INCLUDE_DIR} -- cgit v1.2.3