build: eliminate ICC PCH warning

pull/7869/head
Alexander Alekhin 8 years ago
parent dbbbad40fb
commit ceb5210bfb
  1. 1
      cmake/OpenCVCompilerOptions.cmake

@ -441,6 +441,7 @@ if(MSVC)
foreach(flags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG)
string(REGEX REPLACE "( |^)/W[0-9]+( |$)" "\\1\\2" ${flags} "${${flags}}")
endforeach()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qwd673") # PCH warning
endif()
endif()

Loading…
Cancel
Save