mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
VS: Add support for the CUDA_SEPARABLE_COMPILATION property
This commit is contained in:
@@ -2470,6 +2470,10 @@ bool cmVisualStudio10TargetGenerator::ComputeCudaOptions(
|
||||
cudaOptions.Parse(defineFlags.c_str());
|
||||
cudaOptions.ParseFinish();
|
||||
|
||||
if (this->GeneratorTarget->GetPropertyAsBool("CUDA_SEPARABLE_COMPILATION")) {
|
||||
cudaOptions.AddFlag("GenerateRelocatableDeviceCode", "true");
|
||||
}
|
||||
|
||||
// Convert the host compiler options to the toolset's abstractions
|
||||
// using a secondary flag table.
|
||||
cudaOptions.ClearTables();
|
||||
|
||||
Reference in New Issue
Block a user