mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-18 04:31:26 -06:00
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}")
23 lines
478 B
CMake
23 lines
478 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(InvalidArgument1)
|
|
run_cmake(exists)
|
|
run_cmake(IsDirectory)
|
|
run_cmake(IsDirectoryLong)
|
|
run_cmake(duplicate-deep-else)
|
|
run_cmake(duplicate-else)
|
|
run_cmake(duplicate-else-after-elseif)
|
|
run_cmake(elseif-message)
|
|
run_cmake(misplaced-elseif)
|
|
|
|
run_cmake(unbalanced-parenthesis)
|
|
|
|
run_cmake(MatchesSelf)
|
|
run_cmake(IncompleteMatches)
|
|
run_cmake(IncompleteMatchesFail)
|
|
|
|
run_cmake(TestNameThatExists)
|
|
run_cmake(TestNameThatDoesNotExist)
|
|
|
|
run_cmake_script(AndOr)
|