summarylogtreecommitdiffstats
path: root/gcc6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gcc6.patch')
-rw-r--r--gcc6.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc6.patch b/gcc6.patch
new file mode 100644
index 000000000000..b8544cc186a7
--- /dev/null
+++ b/gcc6.patch
@@ -0,0 +1,21 @@
++++ b/CMake/GenerateExportHeader.cmake 2016-05-07 10:26:51.085595051 +0200
+@@ -166,7 +166,7 @@
+ execute_process(COMMAND ${CMAKE_C_COMPILER} ARGS --version
+ OUTPUT_VARIABLE _gcc_version_info
+ ERROR_VARIABLE _gcc_version_info)
+- string(REGEX MATCH "[345]\\.[0-9]\\.[0-9]*"
++ string(REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
+ _gcc_version "${_gcc_version_info}")
+ # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
+ # patch level, handle this here:
+
++++ b/CMake/vtkCompilerExtras.cmake 2016-05-07 10:27:20.496204378 +0200
+@@ -32,7 +32,7 @@
+ OUTPUT_VARIABLE _gcc_version_info
+ ERROR_VARIABLE _gcc_version_info)
+
+- string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]*"
++ string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
+ _gcc_version "${_gcc_version_info}")
+ if(NOT _gcc_version)
+ string (REGEX REPLACE ".*\\(GCC\\).*([34]\\.[0-9]).*" "\\1.0" \ No newline at end of file