Attempt to fix the compile of cmake on Sun CC.

The problem may be that the reportError method is static, so make
it non-static on that platform.
This commit is contained in:
Stephen Kelly 2012-10-11 22:31:35 +02:00
parent 2876cb39d7
commit a573a85658
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@
#include "cmGeneratorExpression.h"
//----------------------------------------------------------------------------
static void reportError(cmGeneratorExpressionContext *context,
#if !defined(__SUNPRO_CC) || __SUNPRO_CC > 0x510
static
#endif
void reportError(cmGeneratorExpressionContext *context,
const std::string &expr, const std::string &result)
{
context->HadError = true;