aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-03-30 19:24:52 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-04-01 20:38:49 +0300
commit86394132e7920c26e807d4bcae971fc26e7e9313 (patch)
tree8b734f123568f6d3cb00e9e6857a55bf0c679a69
parent4d06f93021074206847d8b67c5818cf45a3fca81 (diff)
downloadmeson-86394132e7920c26e807d4bcae971fc26e7e9313.zip
meson-86394132e7920c26e807d4bcae971fc26e7e9313.tar.gz
meson-86394132e7920c26e807d4bcae971fc26e7e9313.tar.bz2
cuda: Fix meson template (fixes #6869)
-rw-r--r--mesonbuild/templates/cudatemplates.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/templates/cudatemplates.py b/mesonbuild/templates/cudatemplates.py
index f645974..2321011 100644
--- a/mesonbuild/templates/cudatemplates.py
+++ b/mesonbuild/templates/cudatemplates.py
@@ -29,7 +29,7 @@ int main(int argc, char **argv) {{
}}
'''
-hello_cuda_meson_template = '''project('{project_name}', 'cpp',
+hello_cuda_meson_template = '''project('{project_name}', ['cuda', 'cpp'],
version : '{version}',
default_options : ['warning_level=3',
'cpp_std=c++14'])
@@ -101,7 +101,7 @@ int main(int argc, char **argv) {{
}}
'''
-lib_cuda_meson_template = '''project('{project_name}', 'cuda',
+lib_cuda_meson_template = '''project('{project_name}', ['cuda', 'cpp'],
version : '{version}',
default_options : ['warning_level=3'])