On 7/19/07, <b class="gmail_sendername">cjacker</b> &lt;<a href="mailto:jzhuang@redflag-linux.com">jzhuang@redflag-linux.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
cmake-2.4.6.<br><br>I had search it anywhere.<br>somebody said these are environment variable<br>in some CMakeLists.txt<br>I also find something like this:<br>set(CMAKE_INCLUDE_PATH /include)<br>This seems like a cmake variable not a environment variable.
<br><br>Also, I did not find this variable in kdebase of KDE4.<br><br>Anyboy can help to explain how to use CMAKE_INCLUDE_PATH?</blockquote><div><br>According to CMake&#39;s manual this var is used by FIND_PATH and FIND_FILE. 
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I search the CMAKE Sourcecode, it seems only useful in FIND_PATH command.<br><br>
but how to use it?<br><br>I do it in bash like this:<br>export CMAKE_INCLUDE_PATH=/usr/include/hello<br><br>FIND_PATH(myPath hello.h ${CMAKE_INCLUDE_PATH})<br><br>it just did not works.</blockquote><div><br>It works fine for me. And the paths defined in CMAKE_INCLUDE_PATH are searched by default so you needn&#39;t pass it to FIND_PATH explicitly.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">if we use it like $ENV{CMAKE_INCLUDE_PATH}, it is a normal environment<br>variable.
</blockquote><div><br>By default FIND_PATH use both CMake var CMAKE_INCLUDE_PATH and the env var CMAKE_INCLUDE_PATH to search files. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
We can define anyname like this.<br><br><br>also, if we must explicitly use this variable in CMakeLists.txt, how can<br>we handle things like --extra-include-dir?<br><br>I already search the maillist of cmake, please do not redirect me to
<br>other post here. It did not works.<br><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>