7a649111cd
Automate with: find Tests -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
11 lines
289 B
CMake
11 lines
289 B
CMake
set(d "/long/path/to/directory")
|
|
foreach(i RANGE 11)
|
|
string(APPEND 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()
|