summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-22 11:01:55 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-22 12:15:37 (GMT)
commit5c7ca6f8a87f8c673088103a4d00a176f8cd93fe (patch)
tree9baf40ea74d319f0f9cede1eec8dfe9da37e5438 /Source/cmVisualStudioGeneratorOptions.cxx
parent4468acb979d04fc422a1c78a89c24a26b35f3629 (diff)
downloadCMake-5c7ca6f8a87f8c673088103a4d00a176f8cd93fe.zip
CMake-5c7ca6f8a87f8c673088103a4d00a176f8cd93fe.tar.gz
CMake-5c7ca6f8a87f8c673088103a4d00a176f8cd93fe.tar.bz2
CUDA: Move VS CudaRuntime selection to be with rest of CUDA options
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 88ca92d..937b4ce 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -151,27 +151,6 @@ bool cmVisualStudioGeneratorOptions::UsingSBCS() const
return false;
}
-void cmVisualStudioGeneratorOptions::FixCudaRuntime(cmGeneratorTarget* target)
-{
- std::map<std::string, FlagValue>::const_iterator i =
- this->FlagMap.find("CudaRuntime");
- if (i == this->FlagMap.end()) {
- // User didn't provide am override so get the property value
- std::string const& cudaRuntime =
- target->GetRuntimeLinkLibrary("CUDA", this->Configuration);
- if (cudaRuntime == "STATIC") {
- this->AddFlag("CudaRuntime", "Static");
- } else if (cudaRuntime == "SHARED") {
- this->AddFlag("CudaRuntime", "Shared");
- } else if (cudaRuntime == "NONE") {
- this->AddFlag("CudaRuntime", "None");
- } else {
- // nvcc default is static
- this->AddFlag("CudaRuntime", "Static");
- }
- }
-}
-
void cmVisualStudioGeneratorOptions::FixCudaCodeGeneration()
{
// Extract temporary values stored by our flag table.