cmake(1) — CMake 3.23.0-rc5 Documentation
cmake.org › cmake › helpPath to directory which CMake will use as the root of build directory. If the directory doesn't already exist CMake will make it. -C <initial-cache> Pre-load a script to populate the cache. When CMake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project.
file — CMake 3.23.0-rc5 Documentation
cmake.org › cmake › helpAn important difference is that configure_file () creates a dependency on the source file, so CMake will be re-run if it changes. The file (COPY_FILE) sub-command does not create such a dependency. See also the file (COPY) sub-command just below which provides further file-copying capabilities.