title: cmake - How to set different variables for Intel compiler
body: <p>I do have a simple cmake project (on linux) that loads some libraries from custom places. I now would like to use the Intel compiler instead of the gnu compiler and add some if statement to my CMakeLists.txt that loads different libraries based on the type of compiler used.</p>
  
  <p>So I would specify the usage of the Intel compiler via the CXX environment variable (is that correct?) at cmake configuration time.
  I then would need an if-statement in the line of</p>
  
  <pre><code>IF ( INTEL_IS_USED )
    BLA BLA
  ELSE
    BLA BLA
  </code></pre>
  
  <p>What would be the easiest way to do this? Especially, is there some variable that I can query for the compiler type and what would be its value for the Intel compiler?</p>
  
  <p>Cheers,
  Oliver</p>