build on visual studio

hi ,when i use cmake to genernate the sln for visual studio,but there are some error
"cmake_minimum_required(VERSION 2.8)", and the sln file was bad file when use visual studio to build it.

in forum,some people ask the same question,but can not fount the answer

some one can give me a project file for visual studio can build the last release version?
Get the latest CMake?
Erin Catto wrote:
Get the latest CMake?

the version of my cmake is the lastest version
2.8.4
I also have some problems with CMake in Visual Studio 2010 configuration
Quote:
CMake Warning (dev) at Testbed/CMakeLists.txt:70 (add_executable):
Policy CMP0003 should be set before this line. Add code such as

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "Testbed" links to some libraries for which the linker must
search:

glu32, opengl32

and other libraries with known full path:

E:/Box2D_v2.1.2/Box2D/Build/Box2D/Debug/Box2D.lib
E:/Box2D_v2.1.2/Box2D/Build/freeglut/Debug/freeglut_static.lib
E:/Box2D_v2.1.2/Box2D/Build/glui/Debug/glui.lib

CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.

Original thread: https://box2d.org/forum/viewtopic.php?t=6830