John,<div><br></div><div>In today&#39;s CVS HEAD of VTK, on line 51/52 of CMakeLists.txt we use these two lines:</div><div><div>  SET(VTK_CMAKE_DIR &quot;${VTK_SOURCE_DIR}/CMake&quot;)</div><div>  SET(CMAKE_MODULE_PATH &quot;${VTK_CMAKE_DIR}&quot; ${CMAKE_MODULE_PATH})</div>
<div><br></div><div>to set a custom CMake module path for VTK builds. I do not know of anybody having problems with VTK related to CMake modules...</div><div><br></div><div>When you say:</div><div>  &quot;I am able to find my &quot;local&quot; cmake modules but cannot find the &quot;system&quot; cmake modules, in the cmake module directory.&quot;</div>
<div><br></div><div>What do you mean?</div><div><br></div><div>Are you getting an error message when doing a FIND_PACKAGE or an INCLUDE?</div><div class="gmail_quote"><br></div><div class="gmail_quote">Either technique (appending via a SET command or using a LIST(APPEND command) should work OK.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Let me know what your specific error message is and maybe I can help you narrow down what the problem is. Or... maybe you could post a minimal example CMakeLists.txt that is standalone that demonstrates the problem?</div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks,</div><div class="gmail_quote">David</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">
On Tue, Mar 3, 2009 at 11:45 AM, John Vines (CISD/HPCD) <span dir="ltr">&lt;<a href="mailto:jvines@arl.army.mil">jvines@arl.army.mil</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Unfortunately this isn&#39;t working either:<br>
     1 SET(MY_MODULE_DIR &quot;/home/jvines/Devel/CMAKE_MODULES&quot;)<br>
     2 LIST(APPEND CMAKE_MODULE_PATH ${MY_MODULE_DIR})<br>
     3<br>
     4 message(&quot;${CMAKE_MODULE_PATH}&quot;)<br>
<br>
I am able to find my &quot;local&quot; cmake modules but cannot find the &quot;system&quot; cmake modules, in the cmake module directory.<br>
<br>
Leiter, Kenneth (Cont, ARL/CISD) wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Classification:  UNCLASSIFIED Caveats: NONE<br>
<br>
Hey,<br>
<br>
I think you may need to add some quotes (looking at some examples online)<br>
<br>
SET(CMAKE_MODULE_PATH  ${CMAKE_MODULE_PATH} &quot;${MY_MODULE_DIR}&quot;)<br>
<br>
- Ken<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a> [mailto:<a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a>] On Behalf Of<br>
John Vines (CISD/HPCD)<br>
Sent: Tuesday, March 03, 2009 11:24 AM<br>
To: <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>
Subject: [CMake] CMAKE_MODULE_PATH<br>
<br>
All,<br>
    What is the correct syntax to add a module directory to the default<br>
module path?<br>
<br>
    I am trying to append my module directory to the default module path<br>
using this:<br>
    SET(MY_MODULE_DIR /home/jvines/Devel/CMAKE_MODULES)<br>
    SET(CMAKE_MODULE_PATH  ${CMAKE_MODULE_PATH} ${MY_MODULE_DIR})<br>
<br>
    It doesn&#39;t seem to be working.<br>
<br>
Thanks in advance,<br>
John<br>
<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<br>
<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:<br>
<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>
Classification:  UNCLASSIFIED Caveats: NONE<br>
<br>
  <br>
</blockquote>
<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></div>