summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/SunPro.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Compiler/SunPro.cmake')
-rw-r--r--Modules/Compiler/SunPro.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro.cmake b/Modules/Compiler/SunPro.cmake
index 52da39a..331cdfc 100644
--- a/Modules/Compiler/SunPro.cmake
+++ b/Modules/Compiler/SunPro.cmake
@@ -8,3 +8,7 @@ endif()
set(__COMPILER_SUNPRO 1)
include(Compiler/CMakeCommonCompilerMacros)
+
+macro(__compiler_sunpro lang)
+ set(CMAKE_${lang}_COMPILE_OPTIONS_WARNING_AS_ERROR "-errwarn=%all")
+endmacro()