diff options
author | Brad King <brad.king@kitware.com> | 2020-05-22 11:01:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-22 12:15:37 (GMT) |
commit | 5c7ca6f8a87f8c673088103a4d00a176f8cd93fe (patch) | |
tree | 9baf40ea74d319f0f9cede1eec8dfe9da37e5438 /Source/cmVisualStudioGeneratorOptions.cxx | |
parent | 4468acb979d04fc422a1c78a89c24a26b35f3629 (diff) | |
download | CMake-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.cxx | 21 |
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. |