diff options
-rw-r--r-- | Source/cmInstallTargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index 1fd32fd..aba1960 100644 --- a/Source/cmInstallTargetGenerator.cxx +++ b/Source/cmInstallTargetGenerator.cxx @@ -87,7 +87,8 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os) // Versioning is supported only for shared libraries and modules, // and then only when the platform supports an soname flag. cmGlobalGenerator* gg = - this->Target->GetMakefile()->GetLocalGenerator()->GetGlobalGenerator(); + (this->Target->GetMakefile() + ->GetLocalGenerator()->GetGlobalGenerator()); if(const char* linkLanguage = this->Target->GetLinkerLanguage(gg)) { std::string sonameFlagVar = "CMAKE_SHARED_LIBRARY_SONAME_"; |