Skip to content

Commit

Permalink
cmake: Disable -Wsuggest-override option in case of using PCH opencv#…
Browse files Browse the repository at this point in the history
  • Loading branch information
seiko2plus committed May 2, 2018
1 parent 684cf43 commit 788d6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/OpenCVCompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if(CV_GCC OR CV_CLANG)
add_extra_compiler_option(-Wuninitialized)
add_extra_compiler_option(-Winit-self)
if(HAVE_CXX11)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT ENABLE_PRECOMPILED_HEADERS)
add_extra_compiler_option(-Wsuggest-override)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_extra_compiler_option(-Winconsistent-missing-override)
Expand Down

0 comments on commit 788d6a7

Please sign in to comment.