|
@@ -828,11 +828,8 @@ void cmGlobalGenerator::EnableLanguage(
|
|
|
std::string sharedLibFlagsVar = "CMAKE_SHARED_LIBRARY_";
|
|
std::string sharedLibFlagsVar = "CMAKE_SHARED_LIBRARY_";
|
|
|
sharedLibFlagsVar += lang;
|
|
sharedLibFlagsVar += lang;
|
|
|
sharedLibFlagsVar += "_FLAGS";
|
|
sharedLibFlagsVar += "_FLAGS";
|
|
|
- std::string const& sharedLibFlags =
|
|
|
|
|
|
|
+ this->LanguageToOriginalSharedLibFlags[lang] =
|
|
|
mf->GetSafeDefinition(sharedLibFlagsVar);
|
|
mf->GetSafeDefinition(sharedLibFlagsVar);
|
|
|
- if (!sharedLibFlags.empty()) {
|
|
|
|
|
- this->LanguageToOriginalSharedLibFlags[lang] = sharedLibFlags;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
// Translate compiler ids for compatibility.
|
|
// Translate compiler ids for compatibility.
|
|
|
this->CheckCompilerIdCompatibility(mf, lang);
|
|
this->CheckCompilerIdCompatibility(mf, lang);
|