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

Method EnableLanguage

Source/cmGlobalMSYSMakefileGenerator.cxx:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void cmGlobalMSYSMakefileGenerator::EnableLanguage(
44 std::vector<std::string> const& l, cmMakefile* mf, bool optional)
45{
46 mf->AddDefinition("MSYS", "1");
47 this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
48
49 if (!mf->IsSet("CMAKE_AR") && !this->CMakeInstance->GetIsInTryCompile() &&
50 !(1 == l.size() && l[0] == "NONE"_s)) {
51 cmSystemTools::Error(
52 "CMAKE_AR was not found, please set to archive program. " +
53 mf->GetSafeDefinition("CMAKE_AR"));
54 }
55}
56
57cmDocumentationEntry cmGlobalMSYSMakefileGenerator::GetDocumentation()
58{

Callers

nothing calls this directly

Calls 5

GetIsInTryCompileMethod · 0.80
ErrorClass · 0.70
AddDefinitionMethod · 0.45
IsSetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected