summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.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/cmSystemTools.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/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 5d1f5f7..c321236 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1308,6 +1308,9 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext)
if (ext == "java" || ext == ".java") {
return cmSystemTools::JAVA_FILE_FORMAT;
}
+ if (ext == "cu" || ext == ".cu") {
+ return cmSystemTools::CUDA_FILE_FORMAT;
+ }
if (ext == "H" || ext == ".H" || ext == "h" || ext == ".h" || ext == "h++" ||
ext == ".h++" || ext == "hm" || ext == ".hm" || ext == "hpp" ||
ext == ".hpp" || ext == "hxx" || ext == ".hxx" || ext == "in" ||