<br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 6:56 PM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I want to set a couple of custom directories of mine to be searched for cmake modules when I use include( foo.cmake ). However, I can't seem to get this to work. My code is basically:<div><br>set( CMAKE_MODULE_PATH "{CMAKE_SOURCE_DIR}/cmake" )</div>
</blockquote><div><br>If this is a verbatim copy of the code you're using, you missed a "$", it should read<br><br> set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" )<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
include( foo.cmake )</div><div><br>This, however, does not work. It says it cannot load the file. Am I doing this wrong? Keep in mind that I really want to PREPEND to the CMAKE_MODULE_PATH variable, as I only want my custom directories to be searched *first*, but I do not want to override the default search path for include modules. How can I do this?</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><br clear="all"><br>-- <br>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>
PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>Fax.+34.93.209.11.09<br>