summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-17 14:20:53 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-17 14:51:39 (GMT)
commit00e13993fde86d3674882aa9e63c46b4e1041462 (patch)
tree2f6da1b00ece1c746c15ef404b1bad5245e47b7c /Source/cmTarget.cxx
parent8e6d6337cdfa62dd5412057c6dcb6d7c23709f6e (diff)
downloadCMake-00e13993fde86d3674882aa9e63c46b4e1041462.zip
CMake-00e13993fde86d3674882aa9e63c46b4e1041462.tar.gz
CMake-00e13993fde86d3674882aa9e63c46b4e1041462.tar.bz2
CUDA: Add CMAKE_CUDA_SEPARABLE_COMPILATION variable
Use its value to initialize the `CUDA_SEPARABLE_COMPILATION` target property when targets are created. Fixes: #17478
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 9cf835c..bf36074 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -279,6 +279,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
this->SetPropertyDefault("CUDA_STANDARD_REQUIRED", nullptr);
this->SetPropertyDefault("CUDA_EXTENSIONS", nullptr);
this->SetPropertyDefault("CUDA_COMPILER_LAUNCHER", nullptr);
+ this->SetPropertyDefault("CUDA_SEPARABLE_COMPILATION", nullptr);
this->SetPropertyDefault("LINK_SEARCH_START_STATIC", nullptr);
this->SetPropertyDefault("LINK_SEARCH_END_STATIC", nullptr);
}