The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
507 B

project('C++-CUDA multi-std', 'cpp', 'cuda',
version : '1.0.0',
default_options : ['cpp_std=c++17', 'cuda_std=c++14'])
# Regression test: Passing override_options used to cause a crash.
# See https://github.com/mesonbuild/meson/issues/9448.
libcpp11 = static_library('testcpp11', 'lib.cu',
override_options: ['cpp_std=c++11']
)
exe = executable('prog', 'main.cu', link_with: libcpp11)
# The runtimes leak memory, so ignore it.
test('cudatest', exe, env: ['ASAN_OPTIONS=detect_leaks=0'])