[cmake] platform/msvc.cmake: Set CMAKE_SIZEOF_VOID_P if it isn't set.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 04:42:51 +0000 (00:42 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 04:42:51 +0000 (00:42 -0400)
commit7098094c6b18af0cf53b71d2ad4bb26c0e61a0c1
tree26c45be801ed6f16126c481181ba50e57f3bda6f
parent766e5bd3e963bb60eae712b05f515384118feaef
[cmake] platform/msvc.cmake: Set CMAKE_SIZEOF_VOID_P if it isn't set.

CMake seems to forget to set this variable in MSVC builds sometimes.
Set it based on CMAKE_SYSTEM_PROCESSOR.

FIXME: This won't work if we're cross-compiling, e.g. using the
x86_amd64 or amd64_x86 toolchains.
cmake/platform/msvc.cmake