[CMake] Simple GLOB Expression
Andy Lego
andy at legoandy.com
Fri Sep 19 10:18:13 EDT 2008
FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_case_filesystem.tmp" "foo")
IF(FILE EXITS "${CMAKE_CURRENT_BINARY_DIR}/test_case_filesystem.TMP")
...
ENDIF()
You should also check if the file already exists.
But, be careful. On Mac for example HFS is case independent, but NFS or
other FS may not be.
Andy
On Fri, Sep 19, 2008 at 7:12 AM, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:
> Hi there,
>
> I would like to write in a portable way the following cmake script:
>
> FILE(GLOB myvar
> "${fullpath}"/*.DCM
> "${fullpath}"/*.dcm
> )
>
> How do I check that the target system is case sensitive or not ?
>
>
> Thanks,
> --
> Mathieu
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
--
Lets bike the world together
http://legoandy.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080919/c115e1a0/attachment.htm>
More information about the CMake
mailing list