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">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;">
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>