Browse Source

cmGeneratorTarget: add a query for whether to use short object names

Ben Boeckel 7 months ago
parent
commit
c4bf198aed
2 changed files with 7 additions and 0 deletions
  1. 5 0
      Source/cmGeneratorTarget.cxx
  2. 2 0
      Source/cmGeneratorTarget.h

+ 5 - 0
Source/cmGeneratorTarget.cxx

@@ -5355,6 +5355,11 @@ bool cmGeneratorTarget::NeedImportLibraryName(std::string const& config) const
       this->GetType() == cmStateEnums::MODULE_LIBRARY));
 }
 
+bool cmGeneratorTarget::GetUseShortObjectNames() const
+{
+  return this->LocalGenerator->UseShortObjectNames();
+}
+
 std::string cmGeneratorTarget::GetSupportDirectory() const
 {
   cmLocalGenerator* lg = this->GetLocalGenerator();

+ 2 - 0
Source/cmGeneratorTarget.h

@@ -937,6 +937,8 @@ public:
   /** Return whether or not the target has a DLL import library.  */
   bool HasImportLibrary(std::string const& config) const;
 
+  bool GetUseShortObjectNames() const;
+
   /** Get a build-tree directory in which to place target support files.  */
   std::string GetSupportDirectory() const;
   std::string GetCMFSupportDirectory() const;