blob: 0e93be7449ebc942a357fcb055e3ac961c3fff58 (
plain)
1
2
3
4
5
6
7
8
9
10
|
set(d "/long/path/to/directory")
foreach(i RANGE 11)
set(d "${d}${d}")
endforeach()
string(LENGTH "${d}" dl)
if(IS_DIRECTORY "${d}/")
message(FATAL_ERROR "Directory should not exist!")
else()
message(STATUS "Directory path with length ${dl} correctly does not exist.")
endif()
|