summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeLiteGenerator.cxx
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-01-03 14:22:47 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2018-01-08 21:16:52 (GMT)
commit81868e6badbb36947a6e89b0e97f2f0526d59a67 (patch)
tree0a80366b630f15f2094c2210a3bc1a4d7062f8c1 /Source/cmExtraCodeLiteGenerator.cxx
parent1f29bc4092edf57cfb61882d7d7358db7e53ebe6 (diff)
downloadCMake-81868e6badbb36947a6e89b0e97f2f0526d59a67.zip
CMake-81868e6badbb36947a6e89b0e97f2f0526d59a67.tar.gz
CMake-81868e6badbb36947a6e89b0e97f2f0526d59a67.tar.bz2
CUDA: Add cu as default source file extension
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.cxx')
-rw-r--r--Source/cmExtraCodeLiteGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx
index 383942b..4958007 100644
--- a/Source/cmExtraCodeLiteGenerator.cxx
+++ b/Source/cmExtraCodeLiteGenerator.cxx
@@ -227,10 +227,10 @@ std::string cmExtraCodeLiteGenerator::CollectSourceFiles(
gt->GetSourceFiles(sources,
makefile->GetSafeDefinition("CMAKE_BUILD_TYPE"));
for (cmSourceFile* s : sources) {
- // check whether it is a C/C++ implementation file
+ // check whether it is a C/C++/CUDA implementation file
bool isCFile = false;
std::string lang = s->GetLanguage();
- if (lang == "C" || lang == "CXX") {
+ if (lang == "C" || lang == "CXX" || lang == "CUDA") {
std::string const& srcext = s->GetExtension();
isCFile = cm->IsSourceExtension(srcext);
}