file — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpNew in version 3.2: Added the UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE encodings. For example, the code. file (STRINGS myfile.txt myfile) stores a list in the variable myfile in which each item is a line from the input file. file (<HASH> <filename> <variable>) Compute a cryptographic hash of the content of <filename> and store it in a <variable>.
CMake Cache — Mastering CMake
cmake.org › cmake › helpThe CMake cache may be thought of as a configuration file. The first time CMake is run on a project, it produces a CMakeCache.txt file in the top directory of the build tree. CMake uses this file to store a set of global cache variables, whose values persist across multiple runs within a project build tree. There are a few purposes of this cache.
find_file — CMake 3.23.0-rc2 Documentation
cmake.org › cmake › helpNew in version 3.12: If called from within a find module or any other script loaded by a call to find_package (<PackageName>), search prefixes unique to the current package being found. Specifically, look in the <PackageName>_ROOT CMake variable and the <PackageName>_ROOT environment variable.
string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpThe string (FIND) subcommand treats all strings as ASCII-only characters. The index stored in <output_variable> will also be counted in bytes, so strings containing multi-byte characters may lead to unexpected results. string (REPLACE <match_string> <replace_string> <output_variable> <input> [<input>...])