Skip to content
Discussion options

You must be logged in to vote

I think I found the change that works and can be useful for others. I put the multiple language requirements for project within brackets [] and then also have all the default_options. I thought I had tried that last night but evidently not. Thank you developers for including the meson init --language=cuda. That showed me where I was going wrong.

# meson.build
project('cuda-example', ['cuda', 'cpp'],
    version         : '0.1.0',
    license         : 'MIT',
    meson_version   : '>=0.50.0',
    default_options : ['cuda_std=c++11','c_std=c11', 'cpp_std=c++11'])

cuda = import('unstable-cuda')
# cuda.nvcc_arch_flags('Auto')

subdir('src')
# src/meson.build
add_project_arguments(['-rdc=tru…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@tabedzki
Comment options

@eli-schwartz
Comment options

@tabedzki
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tabedzki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants