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

Method IssueInvalidTargetNameError

Source/cmMakefile.cxx:249–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void cmMakefile::IssueInvalidTargetNameError(
250 std::string const& targetName) const
251{
252 this->IssueMessage(
253 MessageType::FATAL_ERROR,
254 cmStrCat("The target name \"", targetName,
255 "\" is reserved or not valid for certain "
256 "CMake features, such as generator expressions, and may result "
257 "in undefined behavior."));
258}
259
260void cmMakefile::MaybeWarnCMP0074(std::string const& rootVar, cmValue rootDef,
261 cm::optional<std::string> const& rootEnv)

Callers 3

cmAddExecutableCommandFunction · 0.80
cmAddLibraryCommandFunction · 0.80
cmAddCustomTargetCommandFunction · 0.80

Calls 2

IssueMessageMethod · 0.95
cmStrCatFunction · 0.70

Tested by

no test coverage detected