<div dir="ltr">Hello all,<div><br><div>I have some questions about opencv cmake configuration. I am using Intel&#39;s icc compiler and using cmake to configure opencv to build with intel&#39;s icc compiler. </div><div><br>

</div><div>1. I feed CMAKE_CXX_COMPILER with some arguments. But in verbose mode I have seen -fsigned-char flag  which is not provided by me is adding to flags.</div><div><br></div><div>2. When searching about something about cmake and intel icc compiler, I have seen in this mailing list someone talking about INTERPROCEDURAL_OPTIMIZATION flag. But in my case I cannot see this option to be filled. Is there a problem in my case? Moreover, I know that, there should be an option for AVX and AVX2, but I haven&#39;t also seen any of these option.</div>

<div><br></div><div>3. When compiling, I have seen some pragma errors:</div><div><div>warning #161: unrecognized #pragma</div><div>  #  pragma GCC diagnostic ignored &quot;-Wmissing-declarations&quot; in file test_precomp.hpp</div>

</div><div>This file&#39;s content is as following:</div><div><div>#ifdef __GNUC__</div><div>#  pragma GCC diagnostic ignored &quot;-Wmissing-declarations&quot;</div><div>#  if defined __clang__ || defined __APPLE__</div>

<div>#    pragma GCC diagnostic ignored &quot;-Wmissing-prototypes&quot;</div><div>#    pragma GCC diagnostic ignored &quot;-Wextra&quot;</div><div>#  endif</div><div>#endif</div></div><div>.</div><div>.</div><div>.</div>

<div>I understand from the content of this file, __GNUC__ is defined. But I think that, __GNUC__ should not be defined. What do you think about this situation?</div><div><br></div><div>4. To compile opencv with intel icc, I have been using the following procedures:</div>

<div>- source /opt/intel/bin/iccvars.sh -ia32</div><div>- export CC=icc</div><div>- export CXX=icpc</div><div>- cmake-gui</div><div>- make (in build directory)</div><div>Is this sequence true?</div><div><br></div><div>5. How do I use some additional flags for some different source code files for OpenCV?</div>

<div><br></div><div>Best wishes.</div></div></div>