[CMake] CMAKE 2.5 MinGW returns bad WIN32

a.neundorf-work at gmx.net a.neundorf-work at gmx.net
Fri Oct 19 09:50:35 EDT 2007


Hi,

On Friday 19 October 2007 06:24, Gonzalo Garramuño wrote:
> I'm running FindOpenGL and FindGLUT on a mingw based compile, with MSYS
> Makefiles and CMAKE_CXX_COMPILER=g++.  That is, a standard GNU build.
>
> FindOpenGL and FindGLUT fail to find the microsoft opengl32.lib and dll
> and the corresponding glut lib.
>
> The problem is that WIN32 returns false.
> It is unclear whether to me whether this is correct behavior.  It seems
> like it shouldn't be being that CYGWIN returns true.

which values do CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_VERSION and CMAKE_SYSTEM 
have ?
CMake should load the file Platforms/Windows.cmake, which sets WIN32 to 1.

Alex


More information about the CMake mailing list