[CMake] Properly Detecting Win64

James Bigler jamesbigler at gmail.com
Tue Apr 19 17:44:18 EDT 2011


On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

> On 4/12/2011 4:13 PM, David Cole wrote:
>
>  Does somebody have reproducible steps to get to the point where
>> CMAKE_SIZEOF_VOID_P disappears??
>>
>> I've never seen that...
>>
>> How many times do you have to re-configure before you start seeing this
>> behavior? That sounds like something is just really wrong somewhere, and
>> it would be a good thing to track down exactly what that is.
>>
>>  This variable is stored in this file:
>
> CMakeFiles/CMakeCCompiler.cmake
>
> It should not go away.
>
> -Bill
>
>
>
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:

# Save compiler ABI information.
SET(CMAKE_C_SIZEOF_DATA_PTR "")
SET(CMAKE_C_COMPILER_ABI "")

IF(CMAKE_C_SIZEOF_DATA_PTR)
  SET(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
ENDIF(CMAKE_C_SIZEOF_DATA_PTR)

For whatever reason CMAKE_C_SIZEOF_DATA_PTR is empty.

What could cause this to happen?  Is there perhaps a race condition or some
other failure when CMake detects this value?

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110419/e3af7271/attachment.htm>


More information about the CMake mailing list