How pass --expt-extended-lambda to Nsight Eclipse

I need to compile a program using Nsight Eclipse, but It requires the --expt-extended-lambda in the nvcc compiler command. How can I add this flag to Nsight Eclipse?
Thanks

Hello,
try to do the following:

  • Right click on project
  • Build > Settings
  • Tool Settings
  • Add --expt-extended-lambda to “Command line pattern”
    Hope it helps