1
0
Эх сурвалжийг харах

cmGlobalGenerator: Add IsIncludeExternalMSProjectSupported method

Tomoki Imai 8 жил өмнө
parent
commit
c89e8522bb

+ 4 - 0
Source/cmGlobalGenerator.h

@@ -358,6 +358,10 @@ public:
 
   virtual bool IsIPOSupported() const { return false; }
 
+  /** Return whether the generator can import external visual studio project
+      using INCLUDE_EXTERNAL_MSPROJECT */
+  virtual bool IsIncludeExternalMSProjectSupported() const { return false; }
+
   /** Return whether the generator should use EFFECTIVE_PLATFORM_NAME. This is
       relevant for mixed macOS and iOS builds. */
   virtual bool UseEffectivePlatformName(cmMakefile*) const { return false; }

+ 2 - 0
Source/cmGlobalVisualStudioGenerator.h

@@ -101,6 +101,8 @@ public:
   /** Return true if building for Windows CE */
   virtual bool TargetsWindowsCE() const { return false; }
 
+  bool IsIncludeExternalMSProjectSupported() const override { return true; }
+
   class TargetSet : public std::set<cmGeneratorTarget const*>
   {
   };