summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/if/IsDirectoryLong.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Help: Document behavior of if(EXISTS,IS_DIRECTORY) for empty pathsscivision2023-01-241-0/+3
| | | | | | | | | | Document and add explicit tests for empty string input: `if(EXISTS "")` and `if(IS_DIRECTORY "")` are always false. This avoids need for users to do extra checks due to CMake non-short-circuit logic as below: if("${p}") if(EXISTS "${p}")
* Use string(APPEND) in TestsDaniel Pfeifer2016-07-271-1/+1
| | | | | | | 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'
* if: Add test for IS_DIRECTORYBrad King2013-05-281-0/+10
Add a RunCMake.if test to cover if() command behavior. Start with a test for IS_DIRECTORY cases with an existing directory and a long path, both with a trailing slash.