blob: 457d3595e49b5e5bc7a7d2e28170576322648871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/cmake/OpenCVPCHSupport.cmake 2017-06-06 15:05:09.180022719 +0200
+++ b/cmake/OpenCVPCHSupport.cmake 2017-06-06 15:05:50.775022684 +0200
@@ -14,7 +14,7 @@
IF(CMAKE_COMPILER_IS_GNUCXX)
- IF(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.2.0")
+ IF(gcc_compiler_version VERSION_GREATER "4.2.-1" AND gcc_compiler_version VERSION_LESS "6.0.0")
SET(PCHSupport_FOUND TRUE)
ENDIF()
|