Minor fix: Cycles was being built even if the pugixml headers were missing. This was not caught at configure time but only when you attempted the build.
Prevents:
[ 9%] Building CXX object intern/itasc/CMakeFiles/bf_intern_itasc.dir/kdl/treefksolverpos_recursive.cpp.o
In file included from /home/mpreisle/d/blender/intern/cycles/graph/../graph/node_xml.h:23,
from /home/mpreisle/d/blender/intern/cycles/graph/node_xml.cpp:17:
/home/mpreisle/d/blender/intern/cycles/graph/../util/util_xml.h:22:10: fatal error: pugixml.hpp: No such file or directory
#include <pugixml.hpp>
^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [intern/cycles/graph/CMakeFiles/cycles_graph.dir/build.make:89: intern/cycles/graph/CMakeFiles/cycles_graph.dir/node_xml.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1426: intern/cycles/graph/CMakeFiles/cycles_graph.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....After this is applied you will instead see this:
-- Could NOT find PUGIXML (missing: PUGIXML_LIBRARY PUGIXML_INCLUDE_DIR) CMake Warning at CMakeLists.txt:718 (message): PugiXML was not found, disabling WITH_CYCLES