Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CMake use -openmp instead of -qopenmp for Intel Compiler

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?