Browse Source

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.
Stephen Kelly 13 years ago
parent
commit
a573a85658
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Source/cmGeneratorExpressionEvaluator.cxx

+ 4 - 1
Source/cmGeneratorExpressionEvaluator.cxx

@@ -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;