So for the specific case you ask about, FindCURL.cmake, you would set the following advanced variables during ccmake / CMakeSetup configure through the cmake GUI:<div>CURL_INCLUDE_DIR</div><div>CURL_LIBRARY</div><div><br class="webkit-block-placeholder">
</div><div>Then, with those set, the next FIND_PACKAGE(CURL) will &quot;find&quot; CURL because you&#39;ve told it exactly where it is.</div><div><br class="webkit-block-placeholder"></div><div>If you do it all with cmake without a GUI, then you would specify those variables on the first cmake command line with -D.
</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Does that help?</div><div>David</div><div><br class="webkit-block-placeholder"></div><div><br><br><div><span class="gmail_quote">
On 11/19/07, <b class="gmail_sendername">Stephen Collyer</b> &lt;<a href="mailto:scollyer@netspinner.co.uk">scollyer@netspinner.co.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
David Cole wrote:<br>&gt; What is wrong with explicitly specifying the non-standard locations up front<br>&gt; so that FIND_PACKAGE has nothing to do?<br><br>You assume that I considered it all. In fact, I&#39;m far too clueless
<br>about cmake to have done that.<br><br>&gt; In other words, prime all the relevant cache variables with the non-standard<br>&gt; locations.<br><br>You mean the CMAKE_SYSTEM_INCLUDE_PATH variables ? So I&#39;d set these
<br>via something like:<br><br>cmake -DCMAKE_SYSTEM_INCLUDE_PATH=/som/where ...<br><br>so that it ends up in the cache file ? Or are you talking about<br>something completely different.<br><br>&gt; Are there specific packages you are having difficulty with?
<br><br>I have a development version&nbsp;&nbsp;of libcurl which has a directory<br>structure like:<br><br>curl/libcurl.dll<br>curl/include/curl/*.h<br><br>This isn&#39;t found by FindCURL.cmake due to the extra<br>include dir.<br>
<br>--<br>Regards<br><br>Steve Collyer<br>Netspinner Ltd<br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">
http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>&nbsp;</div>