[CMake] Having difficulty with find_library()

Bill Hoffman bill.hoffman at kitware.com
Thu Jan 15 16:58:32 EST 2009


Robert Dailey wrote:

>     Check if CMAKE_SIZE_VOID_P is 8 (64bit) or 4 (32bit).
> 
> 
> That seems random. The name also doesn't make any sense. Is there not a 
> more intuitive way?
> 
The variable is CMAKE_SIZEOF_VOID_P, and it is documented:

http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_SIZEOF_VOID_P

It is the best way to figure out 64 bit or not.

-Bill


More information about the CMake mailing list