|
|
@@ -580,7 +580,8 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang)
|
|
|
std::vector<std::string> compileCmds;
|
|
|
if (lang == "CUDA") {
|
|
|
std::string cmdVar;
|
|
|
- if (this->GeneratorTarget->GetProperty("CUDA_SEPARABLE_COMPILATION")) {
|
|
|
+ if (this->GeneratorTarget->GetPropertyAsBool(
|
|
|
+ "CUDA_SEPARABLE_COMPILATION")) {
|
|
|
cmdVar = std::string("CMAKE_CUDA_COMPILE_SEPARABLE_COMPILATION");
|
|
|
} else {
|
|
|
cmdVar = std::string("CMAKE_CUDA_COMPILE_WHOLE_COMPILATION");
|