| 914 | } |
| 915 | |
| 916 | void 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 | |
| 937 | void cmMakefile::AddEvaluationFile( |
| 938 | std::string const& inputFile, std::string const& targetName, |
no test coverage detected