I believe the word used was &quot;reproducible&quot; not &quot;reliable&quot; -- and I think he was talking about the fact that it is not reproducible because it depends on human interaction. Other than the human sitting at the keyboard, I have found ccmake (and *all* of the cmake executables) to be quite reliable.<div>
<br></div><div>The thing that is confusing you about the CMAKE_INSTALL_PREFIX value is something that it takes everyone a while to get their heads around... The *cached* value (that you see in the GUI) is not the same as the local variable value in the CMakeLists.txt file. When you use set(var &quot;value&quot;) in a CMakeLists.txt file using a variable name that is also in the cache, you are only affecting the local value in the CMakeLists.txt file, not the cache value.</div>
<div><br></div><div>And when you print it out (and when CMake generates make files) it is the local value that matters, not the cached value that you see in the GUI.</div><div><br></div><div>Once you get your head around that concept, I think you&#39;ll find ccmake is quite reliable. :-)</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Sep 15, 2009 at 2:37 PM, James C. Sutherland <span dir="ltr">&lt;<a href="mailto:James.Sutherland@utah.edu">James.Sutherland@utah.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On another mailing list that I subscribe to someone mentioned that ccmake was not very reliable.  Is this true?<br>
<br>
A related question:  If I set CMAKE_INSTALL_PREFIX in my CMakeLists.txt file<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
set( CMAKE_INSTALL_PREFIX<br>
  ${CMAKE_CURRENT_BINARY_DIR}<br>
  )<br>
</blockquote>
and then run ccmake, I find that the CMAKE_INSTALL_PREFIX variable is set to /usr/local rather than the binary directory.  Is this a bug?  I ran ccmake on a clean build directory, i.e. I had no cache.  Incidentally, this also occurs with the CMake gui.  If I dump the variable from my CMakeLists.txt file, e.g.<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  message( STATUS &quot;Files will be installed to: &quot; ${CMAKE_INSTALL_PREFIX} )<br>
</blockquote>
<br>
then it reflects the correct directory, but the CMakeCache.txt file still shows /usr/local.  Am I misunderstanding something?<br>
<br>
Thanks,<br>
<br>
James<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>