<font><font face="verdana,sans-serif">Which version of VTK are you trying? I have the same setup as you (</font></font>CMake2.8.7 and Visual Studio 2010<font><font face="verdana,sans-serif"> on Win7 x64) and it works for me both for VTK5.6.1 and VTK5.8.0.<br>

</font></font><br><div class="gmail_quote">2012/1/24 Massinissa Bandou <span dir="ltr">&lt;<a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Hello<br>
<br>
I&#39;m new on VTK and I tried to compile VTK using CMake2.8.7 and Visual Studio 2010.<div class="im"><br>
Actually, I&#39;m using Win7 64bits.<br>
I used CMake to setup VTK but when I try to configure it, I got this error:<br>
<br>
CMake Warning (dev) at Graphics/Testing/Cxx/<u></u>CMakeLists.txt:27 (ADD_EXECUTABLE):<br>
  Policy CMP0003 should be set before this line.  Add code such as<br>
<br>
    if(COMMAND cmake_policy)<br>
      cmake_policy(SET CMP0003 NEW)<br>
    endif(COMMAND cmake_policy)<br>
<br>
  as early as possible but after the most recent call to<br>
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears<br>
  because target &quot;GraphicsCxxTests&quot; links to some libraries for which the<br>
  linker must search:<br>
<br>
    opengl32<br>
<br>
  and other libraries with known full path:<br>
<br>
    C:/Users/Massi/Desktop/VTK_<u></u>BIN/bin/Debug/vtkRendering.lib<br>
<br>
  CMake is adding directories in the second list to the linker search path in<br>
  case they are needed to find libraries from the first list (for backwards<br>
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable<br>
  or disable this behavior explicitly.  Run &quot;cmake --help-policy CMP0003&quot; for<br>
  more information.<br>
This warning is for project developers.  Use -Wno-dev to suppress it.<br>
<br>
I can&#39;t build it on VS, a pop up appear: One or more project in the solution were not loaded correctly,<br>
<br>
thank you for your help!<br>
<br>
Massi<br>
<br></div>
______________________________<u></u>_________________<div class="im"><br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br></div>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><div class="im"><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br>