summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-08-31 12:36:00 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-11-14 16:36:44 (GMT)
commitec6ce623351ea3fda95dda49a72fc279a63aee87 (patch)
treeddf4cdf35c754d8846882c2bf763fbf2a7b505f3 /Source/cmMakefileTargetGenerator.cxx
parent4f5155f6aba7cb7cd8c0e5b75e43b38a70568eb1 (diff)
downloadCMake-ec6ce623351ea3fda95dda49a72fc279a63aee87.zip
CMake-ec6ce623351ea3fda95dda49a72fc279a63aee87.tar.gz
CMake-ec6ce623351ea3fda95dda49a72fc279a63aee87.tar.bz2
CUDA: State that cuda has preprocessor output and can generate assembly.
We can consider PTX code to be a form of assembly.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 5bec2bb..7dfb70f 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -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;