MCPcopy Create free account
hub / github.com/Kitware/CMake / cmCatFile

Function cmCatFile

Source/cmcmd.cxx:206–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void cmCatFile(std::string const& fileToAppend)
207{
208#ifdef _WIN32
209 _setmode(fileno(stdin), _O_BINARY);
210 _setmode(fileno(stdout), _O_BINARY);
211#endif
212 std::streambuf* buf = std::cin.rdbuf();
213 cmsys::ifstream source;
214 if (fileToAppend != "-") {
215 source.open(fileToAppend.c_str(), (std::ios::binary | std::ios::in));
216 buf = source.rdbuf();
217 }
218 std::cout << buf;
219}
220
221bool cmRemoveDirectory(std::string const& dir, bool recursive = true)
222{

Callers 1

ExecuteCMakeCommandMethod · 0.85

Calls 2

c_strMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…