Try:<div><span class="Apple-style-span" style="border-collapse: collapse; ">CHECK_INCLUDE_FILES(&quot;unistd.h;stdio.h&quot; var)</span><br><br></div><div>Or:</div><div><span class="Apple-style-span" style="border-collapse: collapse;">SET(files unistd.h stdio.h)</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; ">CHECK_INCLUDE_FILES(&quot;${files}&quot; var)</span><br><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">
On Wed, Jul 1, 2009 at 4:13 AM, Marcel Loose <span dir="ltr">&lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
Maybe it&#39;s because of a partially sleepless night, but I can&#39;t seem to<br>
figure out how I should use check_include_files().<br>
<br>
According to the docs (and the implementation) this macro should be used<br>
as:<br>
<br>
  CHECK_INCLUDE_FILES(INCLUDE VARIABLE)<br>
<br>
where INCLUDE should contain the list of files to include.<br>
Problem is, however, that the following doesn&#39;t work:<br>
<br>
  CHECK_INCLUDE_FILES(unistd.h stdio.h var)<br>
<br>
because this will assign &quot;unistd.h&quot; to the variable INCLUDE and<br>
&quot;stdio.h&quot; to the variable VARIABLE.<br>
<br>
The following also doesn&#39;t work:<br>
<br>
  SET(files unistd.h stdio.h)<br>
  CHECK_INCLUDE_FILES(files var)<br>
<br>
because the variable INCLUDE is not handled as the name of the list<br>
containing the header files, but as the name of the header file itself.<br>
<br>
Am I missing something here, or is this a bug in check_include_files()?<br>
<br>
Best regards,<br>
Marcel Loose.<br>
<br>
<br>
<br>
<br>
<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 <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>