2013-11-03 12:27:13 +02:00
|
|
|
set(d "/long/path/to/directory")
|
|
|
|
foreach(i RANGE 11)
|
2016-10-30 18:24:19 +01:00
|
|
|
string(APPEND d "${d}")
|
2013-11-03 12:27:13 +02: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()
|
2023-05-23 16:38:00 +02:00
|
|
|
if(IS_DIRECTORY "")
|
|
|
|
message(FATAL_ERROR "IS_DIRECTORY \"\" should not exist")
|
|
|
|
endif()
|