FindGLEW: Should not use CMAKE_GENERATOR_PLATFORM
Version : CMake 3.18.0 OS : Windows 10
Maybe it's by design, but when configuring a project without cache CMAKE_GENERATOR_PLATFORM is not set even though it's explicitly says that x64 will be used by default. This causes issues with FindGLEW which relies on CMAKE_GENERATOR_PLATFORM to figure out if we're to use Win32 or x64 libs and defaults to Win32, which in turn causes missing symbols when attempting to link agains Win32 libs for x64 builds. If CMAKE_GENERATOR_PLATFORM should not be set in that case, maybe FindGLEW should use CMAKE_SIZEOF_VOID_P to find current platform ?
Edited by Brad King