Commit db4250af authored by Alexander Alekhin's avatar Alexander Alekhin Committed by GitHub

Merge pull request #900 from alalek:icc

Build with ICC
parents 3d6f95ab 1da7edcd
......@@ -22,6 +22,11 @@ else()
-Wunused-function -Wunused-const-variable
)
endif()
if(CV_ICC)
ocv_warnings_disable(CMAKE_CXX_FLAGS
-wd265 -wd858 -wd873 -wd2196
)
endif()
# Easier to support different versions of protobufs
function(append_if_exist OUTPUT_LIST)
......
......@@ -47,8 +47,10 @@ endif()
add_definitions(-DHAVE_PROTOBUF=1)
#supress warnings in autogenerated caffe.pb.* files
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-parameter -Wundef -Wignored-qualifiers -Wno-enum-compare
-Wdeprecated-declarations)
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4125 /wd4267 /wd4127 /wd4244 /wd4512 /wd4702
/wd4456 /wd4510 /wd4610 /wd4800
ocv_warnings_disable(CMAKE_CXX_FLAGS
-Wunused-parameter -Wundef -Wignored-qualifiers -Wno-enum-compare
-Wdeprecated-declarations
/wd4125 /wd4267 /wd4127 /wd4244 /wd4512 /wd4702
/wd4456 /wd4510 /wd4610 /wd4800
-wd858 -wd2196
)
if(CV_ICC AND NOT MSVC)
ocv_module_disable(saliency)
endif()
set(the_description "Saliency API")
set(OPENCV_MODULE_IS_PART_OF_WORLD OFF)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment