diff options
author | Brad King <brad.king@kitware.com> | 2017-03-07 20:44:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-10 15:19:55 (GMT) |
commit | 13433b135759edaa65bd1cb31c3b124c244866d7 (patch) | |
tree | 6e664b0b5ca735afc1c810c45c564f6b26a79379 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | 82521e359f9afbb1644d1b8eae58f27a51407df3 (diff) | |
download | CMake-13433b135759edaa65bd1cb31c3b124c244866d7.zip CMake-13433b135759edaa65bd1cb31c3b124c244866d7.tar.gz CMake-13433b135759edaa65bd1cb31c3b124c244866d7.tar.bz2 |
VS: Record in global generator whether CUDA is enabled
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index 2cea693..27bd352 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -103,6 +103,7 @@ cmGlobalVisualStudio10Generator::cmGlobalVisualStudio10Generator( "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\10.0\\Setup\\VC;" "ProductDir", vc10Express, cmSystemTools::KeyWOW64_32); + this->CudaEnabled = false; this->SystemIsWindowsCE = false; this->SystemIsWindowsPhone = false; this->SystemIsWindowsStore = false; @@ -459,6 +460,9 @@ void cmGlobalVisualStudio10Generator::EnableLanguage( if (*it == "ASM_NASM") { this->NasmEnabled = true; } + if (*it == "CUDA") { + this->CudaEnabled = true; + } } this->AddPlatformDefinitions(mf); cmGlobalVisualStudio8Generator::EnableLanguage(lang, mf, optional); |