<div class="gmail_quote">On Thu, Jul 7, 2011 at 9:13 AM, tog <span dir="ltr">&lt;<a href="mailto:guillaume.alleon@gmail.com">guillaume.alleon@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi<div><br></div><div>I want to build a package with my own VTK version. I have therefore compiled VTK and I have the following directories:</div><div>sources -&gt; /Users/alleon/PROJECTS/vtk-5.6.1</div><div>build tree -&gt; /Users/alleon/PROJECTS/vtk-5.6.1_build</div>


<div>install tree -&gt; /Users/alleon/PROJECTS/vtk-5.6.1_install</div><div><br></div><div>I have the files:</div><div><div>oggy:~ alleon$ ls -lrt /Users/alleon/PROJECTS/vtk-5.6.1_install/lib/vtk-5.6/VTKConfig.cmake</div>

<div>
-rw-r--r--  1 alleon  staff  8613 Jun 10 15:37 /Users/alleon/PROJECTS/vtk-5.6.1_install/lib/vtk-5.6/VTKConfig.cmake</div><div>oggy:~ alleon$ ls -lrt /Users/alleon/PROJECTS/vtk-5.6.1_install/lib/vtk-5.6/UseVTK.cmake </div>


<div>-rw-r--r--  1 alleon  staff  1315 Jun 10 15:36 /Users/alleon/PROJECTS/vtk-5.6.1_install/lib/vtk-5.6/UseVTK.cmake</div></div><div><br></div><div><br></div><div>In my project CMake, I have set</div><div><br></div><div>


<div>SET(VTK_DIR PATH &quot;/Users/alleon/PROJECTS/vtk-5.6.1_install/&quot;)</div><div>FIND_PACKAGE(VTK REQUIRED)</div><div>INCLUDE(${VTK_USE_FILE})</div></div><div><br></div><div>and got this error (Not of those files are in the directory indicated):</div>


<div><br></div><div><div>CMake Warning at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindVTK.cmake:63 (IF):</div><div>   given arguments:</div><div><br></div><div>     &quot;EXISTS&quot; &quot;PATH&quot; &quot;/Users/alleon/PROJECTS/vtk-5.6.1_install//UseVTK.cmake&quot; &quot;AND&quot; &quot;NOT&quot; &quot;EXISTS&quot; &quot;PATH&quot; &quot;/Users/alleon/PROJECTS/vtk-5.6.1_install//VTKConfig.cmake&quot;</div>


<div><br></div><div>   Unknown arguments specified</div><div> Call Stack (most recent call first):</div><div>   CMakeLists.txt:16 (FIND_PACKAGE)</div><div><br></div></div><div>If I make the change in CMakeLists.txt to have:</div>


<div><br></div><div><div>SET(VTK_DIR PATH &quot;/Users/alleon/PROJECTS/vtk-5.6.1_install/lib/vtk-5.6&quot;) &lt;- where the expected files can be found</div><div>FIND_PACKAGE(VTK REQUIRED)</div><div>INCLUDE(${VTK_USE_FILE})</div>


</div><div><br></div><div><br></div><div>I get this new error:</div><div><br></div><div><div>CMake Warning at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindVTK.cmake:63 (IF):</div><div>   given arguments:</div>


<div><br></div><div>     &quot;EXISTS&quot; &quot;PATH&quot; &quot;/Users/alleon/PROJECTS/vtk-5.6.1_install/lib/vtk-5.6/UseVTK.cmake&quot; &quot;AND&quot; &quot;NOT&quot; &quot;EXISTS&quot; &quot;PATH&quot;</div><div> &quot;/Users/alleon/PROJECTS/vtk-5.6.1_install/lib/vtk-5.6/VTKConfig.cmake&quot;</div>


<div><br></div><div>   Unknown arguments specified</div><div> Call Stack (most recent call first):</div><div>   CMakeLists.txt:15 (FIND_PACKAGE)</div><div><br></div><div><br></div><div>What the hell am I doing wrong ?</div>


<div><br></div><div>Thanks</div><div>Guillaume</div>
</div>
<br>_______________________________________________<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/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>Try:<br>SET(VTK_DIR &quot;/Users/alleon/PROJECTS/vtk-5.6.1_install&quot;)<br>
<br>without the &quot;PATH&quot; and without the trailing &quot;/&quot;...<br><br><br>HTH,<br>David<br><br>