On Wed, Jan 14, 2009 at 6:22 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 13.01.09 19:06:13, Robert Dailey wrote:<br>
> Trust me, I've read this already. It makes no sense to me. How am I supposed<br>
> to know that any of the variables it is checking have been set?<br>
<br>
</div>Not sure what you mean wit that. You can check for any cmake variable<br>
wether its set via if(<variablename>)<br>
<div class="Ih2E3d"><br>
> And if so, where were they set?<br>
<br>
</div>They are set via the commandline options when running cmake, i.e. cmake<br>
-DCMAKE_PREFIX_PATH or by setting an environment variable before running<br>
cmake. I'm not sure how the various CMake GUI's handle this.<br>
<div class="Ih2E3d"><br>
> Could someone give me a summary of what find_path is<br>
> searching in in this specific case?<br>
<br>
</div>Check section 4. and 5., both indicate whats used on the platforms to get<br>
paths which should be checked. 4. mentions PATH and INCLUDE environment<br>
variables, 5. mentiones platform files for the current system. Those<br>
informations are usualy found in<br>
<cmake>/share/cmake-2.6/Modules/Platform/<yourplatform>.cmake, in the case<br>
of the CMAKE_SYSTEM_PREFIX_PATH variable you'll find the settings in the<br>
*Paths.cmake files.</blockquote></div><br>I'm trying the following CMake code to setup the search paths for find_library():<br><br><span style="font-family: courier new,monospace;">set( search_path ${third_party} )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">foreach( i RANGE 4 )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> set( search_path ${search_path}/* )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> list( APPEND CMAKE_INCLUDE_PATH ${search_path} )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> list( APPEND CMAKE_PREFIX_PATH ${search_path} )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">endforeach()</span><br><br>However, this isn't working. I'm assuming wildcards work, which is why I am doing this. I read a thread somewhere on the cmake mailing list that said I could use wildcards this way. What am I doing wrong?<br>