|
@@ -583,11 +583,11 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
|
|
std::string const includesString = "$(" + lang + "_INCLUDES)";
|
|
|
vars.Includes = includesString.c_str();
|
|
|
|
|
|
- // At the moment, it is assumed that C, C++, and Fortran have both
|
|
|
+ // At the moment, it is assumed that C, C++, Fortran, and CUDA have both
|
|
|
// assembly and preprocessor capabilities. The same is true for the
|
|
|
// ability to export compile commands
|
|
|
- bool lang_has_preprocessor =
|
|
|
- ((lang == "C") || (lang == "CXX") || (lang == "Fortran"));
|
|
|
+ bool lang_has_preprocessor = ((lang == "C") || (lang == "CXX") ||
|
|
|
+ (lang == "Fortran") || (lang == "CUDA"));
|
|
|
bool const lang_has_assembly = lang_has_preprocessor;
|
|
|
bool const lang_can_export_cmds = lang_has_preprocessor;
|
|
|
|