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

Method EnforceDirectoryLevelRules

Source/cmMakefile.cxx:916–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914}
915
916void cmMakefile::EnforceDirectoryLevelRules() const
917{
918 // Diagnose a violation of CMP0000 if necessary.
919 if (this->CheckCMP0000) {
920 std::string e =
921 cmStrCat("No cmake_minimum_required command is present. "
922 "A line of code such as\n"
923 " cmake_minimum_required(VERSION ",
924 cmVersion::GetMajorVersion(), '.', cmVersion::GetMinorVersion(),
925 ")\n"
926 "should be added at the top of the file. "
927 "The version specified may be lower if you wish to "
928 "support older CMake versions for this project. "
929 "For more information run "
930 "\"cmake --help-policy CMP0000\".");
931 this->GetCMakeInstance()->IssueMessage(MessageType::FATAL_ERROR, e,
932 this->Backtrace);
933 cmSystemTools::SetFatalErrorOccurred();
934 }
935}
936
937void cmMakefile::AddEvaluationFile(
938 std::string const& inputFile, std::string const& targetName,

Callers 1

ConfigureMethod · 0.80

Calls 3

GetCMakeInstanceMethod · 0.95
cmStrCatFunction · 0.70
IssueMessageMethod · 0.45

Tested by

no test coverage detected