File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
65
65
ocv_is_opencv_directory (__result ${item} )
66
66
if (__result )
67
67
LIST (APPEND ${_out_compile_flags} "${_PCH_include_prefix} \" ${item} \" " )
68
+ elseif (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0" AND
69
+ item MATCHES "/usr/include$" )
70
+ # workaround for GCC 6.x bug
68
71
else ()
69
72
LIST (APPEND ${_out_compile_flags} "${_PCH_isystem_prefix} \" ${item} \" " )
70
73
endif ()
@@ -75,6 +78,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
75
78
ocv_is_opencv_directory (__result ${item} )
76
79
if (__result )
77
80
LIST (APPEND ${_out_compile_flags} "${_PCH_include_prefix} \" ${item} \" " )
81
+ elseif (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0" AND
82
+ item MATCHES "/usr/include$" )
83
+ # workaround for GCC 6.x bug
78
84
else ()
79
85
LIST (APPEND ${_out_compile_flags} "${_PCH_isystem_prefix} \" ${item} \" " )
80
86
endif ()
You can’t perform that action at this time.
0 commit comments