-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Tools does not provide the /Fo
arg (and others) in a cpptools custom configuration
#3085
Comments
@Colengms Thanks for reporting the issue! I have investigated this and the issue is a gap in what is reported by the CMake File API. We will investigate improving this and/or finding a fix. Thanks! |
Some context: It appears to repro with the simplest of examples.
It repro's with MSBuild, not Ninja, so just don't set the generator and choose a CL kit. In the verbose build output, you'll see: /Fo"MyProject.dir\Debug\" In the C/C++ logging output, I see: Custom configurations received: |
When I build a file with CMake Tools with a simple example, I'm seeing the following command line used:
The custom configuration sent to cpptools is missing some of those arguments:
I've not dug into the importance of the other missing arguments, but cpptools specifically needs the
/Fo
argument. If (and only if) it is a path ending in a backslash or forward slash, it's used as an output directory for.tlh
files. We need that path to pass to EDGE for--import_dir
. That argument would be needed in order to properly support#using
of COM.tlb
files in cpptools.The text was updated successfully, but these errors were encountered: