file — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpOtherwise, if the library exists in either the operating system's system32 directory or the Windows directory, in that order, the dependency is resolved to that file. Otherwise, if the library exists in one of the directories specified by DIRECTORIES, in the order they are listed, the dependency is resolved to that file. In this case, a warning ...
[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.
file
http://man.hubwiz.com › commandThe REMOVE_RECURSE mode will remove the given files and directories, also non-empty directories. No error is emitted if a given file does not exist.