diff --git a/CMakeLists.txt b/CMakeLists.txt index 930bb1ac6..4596651d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,8 @@ IF(APPLE) OSG_OSX_VERSION "${OSG_OSX_VERSION}") ENDIF() +PROJECT(OpenSceneGraph) + # Set OSX architecture flags here, since they must be specified before # creating the actual OSG project. # Note that the CMAKE_OSX_* variables are not well documented in @@ -51,7 +53,7 @@ ENDIF() IF(ANDROID) SET(OSG_WINDOWING_SYSTEM "None" CACHE STRING "Windowing system type for graphics window creation; options: None.") -ELSEIF(WIN32) +ELSEIF(WIN32 OR MINGW) SET(OSG_WINDOWING_SYSTEM "Win32" CACHE STRING "Windowing system type for graphics window creation; options: Win32 or None.") ELSEIF(APPLE) # custom option to flag an iOS build @@ -116,8 +118,6 @@ ELSE() ENDIF() -PROJECT(OpenSceneGraph) - SET(OPENSCENEGRAPH_VERSION ${OPENSCENEGRAPH_MAJOR_VERSION}.${OPENSCENEGRAPH_MINOR_VERSION}.${OPENSCENEGRAPH_PATCH_VERSION}) SET(OSG_PLUGINS osgPlugins-${OPENSCENEGRAPH_VERSION})