<div dir="ltr">FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_case_filesystem.tmp" "foo")<br>IF(FILE EXITS "${CMAKE_CURRENT_BINARY_DIR}/test_case_filesystem.TMP")<br> ...<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"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></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>
I would like to write in a portable way the following cmake script:<br>
<br>
FILE(GLOB myvar<br>
"${fullpath}"/*.DCM<br>
"${fullpath}"/*.dcm<br>
)<br>
<br>
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>