I'm building OpenCV on a Xeon Phi using the Intel Compiler v16. These are the cmake settings:
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_TBB=OFF -DWITH_OPENMP=ON -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc ..
However, using -DWITH_OPENMP=ON
produces the flag -openmp
which is depecrated, instead it should use -qopenmp
. How can I tell to cmake to use the correct flag?