[vtkusers] VTK
Massinissa Bandou
Massinissa.Bandou at USherbrooke.ca
Tue Jan 24 11:35:10 EST 2012
Hello
I'm new on VTK and I tried to compile VTK using CMake2.8.7 and Visual
Studio 2010.
Actually, I'm using Win7 64bits.
I used CMake to setup VTK but when I try to configure it, I got this error:
CMake Warning (dev) at Graphics/Testing/Cxx/CMakeLists.txt:27
(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 "GraphicsCxxTests" links to some libraries for which the
linker must search:
opengl32
and other libraries with known full path:
C:/Users/Massi/Desktop/VTK_BIN/bin/Debug/vtkRendering.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.
I can't build it on VS, a pop up appear: One or more project in the
solution were not loaded correctly,
thank you for your help!
Massi
More information about the vtkusers
mailing list