<div dir="ltr">FILE(WRITE &quot;${CMAKE_CURRENT_BINARY_DIR}/test_case_filesystem.tmp&quot; &quot;foo&quot;)<br>IF(FILE EXITS &quot;${CMAKE_CURRENT_BINARY_DIR}/test_case_filesystem.TMP&quot;)<br>&nbsp;&nbsp; ...<br>ENDIF()<br><br>You should also check if the file already exists.<br>
<br>But, be careful. On Mac for example HFS is case independent, but NFS or other FS may not be.<br><br>Andy<br><br><br><div class="gmail_quote">On Fri, Sep 19, 2008 at 7:12 AM, Mathieu Malaterre <span dir="ltr">&lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt;</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;">Hi there,<br>
<br>
 &nbsp;I would like to write in a portable way the following cmake script:<br>
<br>
FILE(GLOB myvar<br>
 &nbsp;&quot;${fullpath}&quot;/*.DCM<br>
 &nbsp;&quot;${fullpath}&quot;/*.dcm<br>
)<br>
<br>
 &nbsp;How do I check that the target system is case sensitive or not ?<br>
<br>
<br>
Thanks,<br>
<font color="#888888">--<br>
Mathieu<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" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Lets bike the world together<br><a href="http://legoandy.com">http://legoandy.com</a><br>
</div>