so far for windows we have been using CMAKE_CL_64 if this is needed
for other configurations we'd be better to define some global variable
like SCons BF_BITNESS,

eg,

if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
        set(BITNESS 64)
else()
        set(BITNESS 32)
endif()


For windows you can do...

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
    ....
endif()


While WIN32 is silly to define for win64 afaik we have the same
annoyance in the source code.


For more info see: http://cmake.org/Wiki/CMake_Useful_Variables


On Wed, Oct 26, 2011 at 5:18 AM, Thomas Dinges <blen...@dingto.org> wrote:
> Hey,
> If I see that correct the checks in cmake, like "if(WIN32)", also apply
> to win64.
> Maybe this flag is from old x86 only days. Could we rename it to WIN or
> WINDOWS in general?
>
> Campbell? Any idea? I guess the same applies for scons. Thanks.
>
> Best regards,
> Thomas
>
> --
> Thomas Dinges
> Blender Developer, Artist and Musician
>
> www.dingto.org
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell
_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to