Merge topic 'fix-re-cmake-with-compiler'
8981513a
CMakeDetermineCompiler: Simplify CMAKE_<LANG>_COMPILER default force-cache731427a6
cmGlobalGenerator: Do not re-add CMAKE_<LANG>_COMPILER
This commit is contained in:
commit
2699ac5ef7
|
@ -65,7 +65,7 @@ macro(_cmake_find_compiler lang)
|
|||
endif()
|
||||
find_program(CMAKE_${lang}_COMPILER NAMES ${CMAKE_${lang}_COMPILER_LIST} DOC "${lang} compiler")
|
||||
if(CMAKE_${lang}_COMPILER_INIT AND NOT CMAKE_${lang}_COMPILER)
|
||||
set(CMAKE_${lang}_COMPILER "${CMAKE_${lang}_COMPILER_INIT}" CACHE FILEPATH "${lang} compiler" FORCE)
|
||||
set_property(CACHE CMAKE_${lang}_COMPILER PROPERTY VALUE "${CMAKE_${lang}_COMPILER_INIT}")
|
||||
endif()
|
||||
unset(_${lang}_COMPILER_HINTS)
|
||||
unset(_languages)
|
||||
|
|
|
@ -148,8 +148,6 @@ void cmGlobalGenerator::ResolveLanguageCompiler(const std::string &lang,
|
|||
{
|
||||
return;
|
||||
}
|
||||
std::string doc = lang;
|
||||
doc += " compiler.";
|
||||
const char* cname = this->GetCMakeInstance()->
|
||||
GetCacheManager()->GetCacheValue(langComp);
|
||||
std::string changeVars;
|
||||
|
@ -186,8 +184,6 @@ void cmGlobalGenerator::ResolveLanguageCompiler(const std::string &lang,
|
|||
changeVars.c_str());
|
||||
}
|
||||
}
|
||||
mf->AddCacheDefinition(langComp, path.c_str(),
|
||||
doc.c_str(), cmCacheManager::FILEPATH);
|
||||
}
|
||||
|
||||
void cmGlobalGenerator::AddBuildExportSet(cmExportBuildFileGenerator* gen)
|
||||
|
|
Loading…
Reference in New Issue