X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=0227a950481376dd96fa8b0fbd914d3f6e80bb84;hb=91cac2f34bfc430f6a68ea950cc8f5169327b794;hp=d45b9a530d93ffdb73fa624554174a879f8d3d59;hpb=bec0ee0bbc5f56d92dfe6d9fffd689ff4dd4f929;p=freeglut diff --git a/CMakeLists.txt b/CMakeLists.txt index d45b9a5..0227a95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,8 @@ set(VERSION_MAJOR 3) set(VERSION_MINOR 0) set(VERSION_PATCH 0) +# Update fg_version.h to match the versions number here in cmake +CONFIGURE_FILE(src/fg_version.h.in src/fg_version.h) # FREEGLUT_BUILD_SHARED_LIBS is already a standard CMake variable, but we need to # re-declare it here so it will show up in the GUI. @@ -226,6 +228,9 @@ IF(WIN32) SET( CMAKE_DEBUG_POSTFIX "d" ) ENDIF(MSVC) + # enable the use of Win2000 APIs (needed for really old compilers like MSVC6) + ADD_DEFINITIONS(-D_WIN32_WINNT=0x0500) + ADD_DEFINITIONS(-DWINVER=0x0500) ENDIF() IF(CMAKE_COMPILER_IS_GNUCC)