Revision b8ea771b13989f353c2762abd40a65b6d33a1eb7 authored by Paul Martin on 27 February 2015, 15:45:26 UTC, committed by Brad King on 02 March 2015, 13:55:13 UTC
On some stream libraries failbit is not set when trying to read past EOF. Instead, always exit the copy loop when gcount() is zero.
1 parent 99575c9
cm_jsoncpp_reader.h
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2015 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef cm_jsoncpp_reader_h
#define cm_jsoncpp_reader_h
/* Use the jsoncpp library configured for CMake. */
#include "cmThirdParty.h"
#ifdef CMAKE_USE_SYSTEM_JSONCPP
# include <json/reader.h>
#else
# include <cmjsoncpp/include/json/reader.h>
#endif
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...