[CMake] determine 32 vs 64 bit linux

Rolf Eike Beer eike at sf-mail.de
Thu Jun 23 02:08:25 EDT 2011


Am Mittwoch, 22. Juni 2011, 17:33:01 schrieb Karl Merkley:
> I need to install a library into a directory whose name depends on the
> machine type.   For example
> 
> if (WIN32)
>   if (CMAKE_CL_64)
>       set(ARCH_DIR "win32")
>   else()
>       set(ARCH_DIR "win64")
>   endif()

I'm not sure if that works for "Visual Studio" generators.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110623/4141f692/attachment.pgp>


More information about the CMake mailing list