summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-07 20:44:43 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-10 15:19:55 (GMT)
commit13433b135759edaa65bd1cb31c3b124c244866d7 (patch)
tree6e664b0b5ca735afc1c810c45c564f6b26a79379 /Source/cmGlobalVisualStudio10Generator.h
parent82521e359f9afbb1644d1b8eae58f27a51407df3 (diff)
downloadCMake-13433b135759edaa65bd1cb31c3b124c244866d7.zip
CMake-13433b135759edaa65bd1cb31c3b124c244866d7.tar.gz
CMake-13433b135759edaa65bd1cb31c3b124c244866d7.tar.bz2
VS: Record in global generator whether CUDA is enabled
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.h')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h
index 581ad11..fdeb381 100644
--- a/Source/cmGlobalVisualStudio10Generator.h
+++ b/Source/cmGlobalVisualStudio10Generator.h
@@ -42,6 +42,8 @@ public:
cmMakefile*, bool optional);
virtual void WriteSLNHeader(std::ostream& fout);
+ bool IsCudaEnabled() const { return this->CudaEnabled; }
+
/** Generating for Nsight Tegra VS plugin? */
bool IsNsightTegra() const;
std::string GetNsightTegraVersion() const;
@@ -168,6 +170,8 @@ private:
std::string VCTargetsPath;
bool FindVCTargetsPath(cmMakefile* mf);
+ bool CudaEnabled;
+
// We do not use the reload macros for VS >= 10.
virtual std::string GetUserMacrosDirectory() { return ""; }
};