Imported Upstream version 2.8.12.2
[platform/upstream/cmake.git] / Tests / RunCMake / if / IsDirectoryLong.cmake
1 set(d "/long/path/to/directory")
2 foreach(i RANGE 11)
3   set(d "${d}${d}")
4 endforeach()
5 string(LENGTH "${d}" dl)
6 if(IS_DIRECTORY "${d}/")
7   message(FATAL_ERROR "Directory should not exist!")
8 else()
9   message(STATUS "Directory path with length ${dl} correctly does not exist.")
10 endif()