title: CMake comparision using LESS_EQUAL in while loop not working
body: <p>I am trying to get hold of loops in CMake and the following is a sample Prime no test code</p>
  <pre><code>set(i 2)
  set(n 7)
  MATH(EXPR cntr ${n}/2)
  
  message(${i}, ${n}, ${cntr})
  
  # When I use `LESS` instead of `LESS_EQUAL` the loop works fine
  while(i LESS_EQUAL cntr)
          message(&quot;Checking ${i}&quot;)
          MATH(EXPR RESULT ${n}%${i})
          if(RESULT EQUAL 0)
                  message(&quot;${n} is not Prime, as ${n}%${i} is 0&quot;)
                  break()
          endif()
          MATH(EXPR i ${i}+1)
  endwhile()
  
  if(i EQUAL cntr)
          message(&quot;${n} is Prime&quot;)
  endif()
  </code></pre>
  <p>The above code with <code>LESS_EQUAL</code> is not working for some reason. I think something really silly but tried to debug the code and I am still not getting it.</p>