summarylogtreecommitdiffstats
path: root/opencv_gcc6_pch.patch
diff options
context:
space:
mode:
authoryhfudev2016-10-18 14:17:26 -0400
committeryhfudev2016-10-18 14:17:26 -0400
commit84bcd54a5b2c56d118216b7ed6d84ad42eaf2881 (patch)
tree9352f4c0560f515e26659eb4327c4b5108deb1c7 /opencv_gcc6_pch.patch
downloadaur-84bcd54a5b2c56d118216b7ed6d84ad42eaf2881.tar.gz
init
Diffstat (limited to 'opencv_gcc6_pch.patch')
-rw-r--r--opencv_gcc6_pch.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/opencv_gcc6_pch.patch b/opencv_gcc6_pch.patch
new file mode 100644
index 00000000000..559b3252f24
--- /dev/null
+++ b/opencv_gcc6_pch.patch
@@ -0,0 +1,13 @@
+diff --git a/cmake/OpenCVPCHSupport.cmake b/cmake/OpenCVPCHSupport.cmake
+index 90437cb..7dcfdce 100644
+--- a/cmake/OpenCVPCHSupport.cmake
++++ b/cmake/OpenCVPCHSupport.cmake
+@@ -14,7 +14,7 @@
+
+ IF(CMAKE_COMPILER_IS_GNUCXX)
+
+- IF(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.2.0")
++ IF(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.2.-1" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0.0")
+ SET(PCHSupport_FOUND TRUE)
+ ENDIF()
+