简体   繁体   中英

How does visual studio 2015 add "\Zi" compile option to CUDA Linker? How to remove it?

I use cmake to build C++ project. I didn't add "/Zi" compile option to CMAKE_CUDA_FLAGS. But Visual Studio add "/Zi" to CUDA Linker automatically. My library will become pretty big with this option, so how can I remove it?

在此处输入图片说明 在此处输入图片说明

CUDA Visual Studio Integration doesn't make /Zi configurable by default.

You can either modify HostCommandLineTemplate , RuntimeApiCommandLineTemplate , and CommandLineTemplate directly in C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\V140\\BuildCustomizations\\CUDA 10.0.props or specify an extra .props file to customize your build according to Visual Studio Customize your build .

Just in case, Here is also an example for customize VS build properties using cmake.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM