Other PROJECT commands or ENABLE_LANGUAGE calls are the things that would trigger the checks for compilers...<div><br><br><div class="gmail_quote">On Tue, Mar 30, 2010 at 10:58 AM, Benoit Thomas <span dir="ltr">&lt;<a href="mailto:benoit.thomas@gameloft.com">benoit.thomas@gameloft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  

<div bgcolor="#ffffff" text="#000000">
I&#39;m using version 2.8.0<br>
<br>
Indeed, when I&#39;m doing a small test project, everything works
perfectly. But in my real project, it doesn&#39;t so I guess I&#39;m doing
something wrong somewhere. I&#39;ll try to isolate the code which cause
this problem.<br>
<br>
Thanks for the help,<br>
Ben.<div><div></div><div class="h5"><br>
<br>
On 2010-03-30 10:05, David Cole wrote:
<blockquote type="cite">What is the output, if you have a CMakeLists.txt file with
this content:
  <div>project(xyz NONE)</div>
  <div><br>
  </div>
  <div>And then run this command in the same dir with the CMakeLists
file:</div>
  <div>mkdir build &amp;&amp; cd build &amp;&amp; cmake --version
&amp;&amp; cmake .. &amp;&amp; cd ..</div>
  <div><br>
  </div>
  <div>Mine is:</div>
  <div>cmake version 2.8.1</div>
  <div>
  <div>-- Configuring done</div>
  <div>-- Generating done</div>
  <div>-- Build files have been written to:
/Users/davidcole/Desktop/xyz/build</div>
  <div><br>
  </div>
  <div>You are correct: using &quot;NONE&quot; in the project statement should
(and does for me) prevent the &quot;compiler works&quot; testing.</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>HTH,</div>
  <div>David</div>
  <div><br>
  </div>
  <div><br>
  </div>
  </div>
  <div>
  <div class="gmail_quote">On Tue, Mar 30, 2010 at 9:54 AM, Benoit
Thomas <span dir="ltr">&lt;<a href="mailto:benoit.thomas@gameloft.com" target="_blank">benoit.thomas@gameloft.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Hello,<br>
    <br>
I&#39;m trying to prevent cmake for looking for a valid compiler (since it
currently doesn&#39;t find the appropriate compiler and we use cmake to
generate visual studio solutions).<br>
    <br>
I&#39;ve tried using project (name NONE) but it doesn&#39;t seems to work; I
also tried other combination like project (name JAVA), etc, but it
always search for a C and C++ compiler.<br>
    <br>
Is there any other way to diasble cmake for looking for a valid
compiler ?<br>
    <br>
Thank you,<br>
Ben.<br>
    <br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
    <br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
    <br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
    <br>
Follow this link to subscribe/unsubscribe:<br>
    <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
  </blockquote>
  </div>
  <br>
  </div>
</blockquote>
</div></div></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>