summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomoki Imai <Tomoki.Imai@sony.com>2017-12-02 20:54:55 +0900
committerBrad King <brad.king@kitware.com>2017-12-04 11:21:43 -0500
commitc89e8522bbe0d5526b2d2e6751511fe9737b37e8 (patch)
treeceba8b1f3d10e20be7f2d14725ca9a0bd688ad72
parent6e078505444faf3b140e9032ddfdd23d3d5e3fd6 (diff)
downloadcmake-c89e8522bbe0d5526b2d2e6751511fe9737b37e8.tar.gz
cmGlobalGenerator: Add IsIncludeExternalMSProjectSupported method
-rw-r--r--Source/cmGlobalGenerator.h4
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 8fcb533ba7..abc451a9da 100644
--- a/Source/cmGlobalGenerator.h
+++ b/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; }
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index 55a6813c0d..f4fc3cf9f4 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/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*>
{
};