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

Function CMakeCommandUsage

Source/cmcmd.cxx:152–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150#endif
151
152void CMakeCommandUsage(std::string const& program)
153{
154 /* clang-format off */
155 std::string help_screen = cmStrCat(
156#ifndef CMAKE_BOOTSTRAP
157 "cmake version "
158 , cmVersion::GetCMakeVersion()
159 , "\n"
160#else
161 "cmake bootstrap\n"
162#endif
163 "Usage: "
164 , program
165 , " -E <command> [arguments...]\n"
166 , HELP_AVAILABLE_COMMANDS
167#if defined(_WIN32) && !defined(__CYGWIN__)
168 , HELP_AVAILABLE_WINDOWS_COMMANDS
169#endif
170 );
171 /* clang-format on */
172 cmSystemTools::Error(help_screen);
173}
174
175bool cmTarFilesFrom(std::string const& file, std::vector<std::string>& files)
176{

Callers 1

ExecuteCMakeCommandMethod · 0.85

Calls 2

cmStrCatFunction · 0.70
ErrorClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…