summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-11 20:31:35 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-10-11 20:31:35 (GMT)
commita573a856581118d7a9d8dd7be1f613ba7b1ddb04 (patch)
treefb76cbae5aee7ceb3da429281fb6836d30ea5606 /Source/cmGeneratorExpressionEvaluator.cxx
parent2876cb39d7c8d671aaf05f2ab418991e328beba7 (diff)
downloadCMake-a573a856581118d7a9d8dd7be1f613ba7b1ddb04.zip
CMake-a573a856581118d7a9d8dd7be1f613ba7b1ddb04.tar.gz
CMake-a573a856581118d7a9d8dd7be1f613ba7b1ddb04.tar.bz2
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.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index 92e2052..287066a 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/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;