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 @@ -69,6 +69,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
69
69
FOREACH (item ${DIRINC} )
70
70
if (item MATCHES "^${OpenCV_SOURCE_DIR} /modules/" )
71
71
LIST (APPEND ${_out_compile_flags} "${_PCH_include_prefix} \" ${item} \" " )
72
+ elseif (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0" AND
73
+ item MATCHES "/usr/include$" )
74
+ # workaround for GCC 6.x bug
72
75
else ()
73
76
LIST (APPEND ${_out_compile_flags} "${_PCH_isystem_prefix} \" ${item} \" " )
74
77
endif ()
@@ -78,6 +81,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
78
81
FOREACH (item ${DIRINC} )
79
82
if (item MATCHES "^${OpenCV_SOURCE_DIR} /modules/" )
80
83
LIST (APPEND ${_out_compile_flags} "${_PCH_include_prefix} \" ${item} \" " )
84
+ elseif (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0" AND
85
+ item MATCHES "/usr/include$" )
86
+ # workaround for GCC 6.x bug
81
87
else ()
82
88
LIST (APPEND ${_out_compile_flags} "${_PCH_isystem_prefix} \" ${item} \" " )
83
89
endif ()
You can’t perform that action at this time.
0 commit comments