Update buildOutputLayers.cpp