diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 630fda3a2..6c2d25860 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1067,6 +1067,9 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target, { std::string flags; std::string defFlags; + bool shared = ((target.GetType() == cmTarget::SHARED_LIBRARY) || + (target.GetType() == cmTarget::MODULE_LIBRARY)); + // Add the export symbol definition for shared library objects. if(const char* exportMacro = target.GetExportMacro()) {