[CMake] Check directory exists
cmake.org › pipermail › cmakeFrom the man page: IF(EXISTS file-name) IF(EXISTS directory-name) True if the named file or directory exists. Behavior is well-defined only for full paths. pepone.onrez wrote: > There is any way for check if a directory exists using CMake ?
if — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpTrue if the named file or directory exists. Behavior is well-defined only for explicit full paths (a leading ~/ is not expanded as a home directory and is considered a relative path). Resolves symbolic links, i.e. if the named file or directory is a symbolic link, returns true if the target of the symbolic link exists.