mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
a1dc38a567
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}")
4 lines
76 B
CMake
4 lines
76 B
CMake
if(EXISTS "")
|
|
message(FATAL_ERROR "EXISTS \"\" should not exist")
|
|
endif()
|