On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 4/12/2011 4:13 PM, David Cole wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Does somebody have reproducible steps to get to the point where<br>
CMAKE_SIZEOF_VOID_P disappears??<br>
<br>
I've never seen that...<br>
<br>
How many times do you have to re-configure before you start seeing this<br>
behavior? That sounds like something is just really wrong somewhere, and<br>
it would be a good thing to track down exactly what that is.<br>
<br>
</blockquote></div>
This variable is stored in this file:<br>
<br>
CMakeFiles/CMakeCCompiler.cmake<br>
<br>
It should not go away.<br><font color="#888888">
<br>
-Bill</font><div><div></div><div class="h5"><br>
<br></div></div></blockquote></div><br>I just had this happen to one of my colleagues with a fresh build directory. When I looked into CMakeCCompiler.cmake this is what I found:<br><br># Save compiler ABI information.<br>
SET(CMAKE_C_SIZEOF_DATA_PTR "")<br>SET(CMAKE_C_COMPILER_ABI "")<br><br>IF(CMAKE_C_SIZEOF_DATA_PTR)<br> SET(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")<br>ENDIF(CMAKE_C_SIZEOF_DATA_PTR)<br>
<br>For whatever reason CMAKE_C_SIZEOF_DATA_PTR is empty.<br><br>What could cause this to happen? Is there perhaps a race condition or some other failure when CMake detects this value?<br><br>James<br>