mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.62k stars 1.63k forks source link

How to pass include directory from subproject source to custom target? #10438

Open borg323 opened 2 years ago

borg323 commented 2 years ago

More specifically, we want to use abseil-cpp header files in a cuda file. The rest of the source files get the abseil headers fine from the subroject, but I can't find a way to pass the include directory to the custom target we use to run nvcc. I did hack around the issue passing '-I', meson.source_root() + '/subprojects/abseil-cpp-20211102.0' to nvcc, but was wondering whether there is a clean way to do it.

eli-schwartz commented 2 years ago

Meson has built-in nvcc support, any reason you can't use that?

borg323 commented 2 years ago

Is the nvcc support stable? The docs imply otherwise.