Re: [CMake] Simple GLOB Expression

2008-09-19 Thread Andy Lego
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

[CMake] Simple GLOB Expression

2008-09-19 Thread Mathieu Malaterre
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 lis