2013-05-28 19:13:24 +04:00
|
|
|
set(d "/long/path/to/directory")
|
|
|
|
foreach(i RANGE 11)
|
2016-07-28 01:43:04 +03:00
|
|
|
string(APPEND d "${d}")
|
2013-05-28 19:13:24 +04:00
|
|
|
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()
|