Skip to content

[vcpkg] Add vcpkg installed libraries to msvc external include path#18820

Merged
ras0219-msft merged 1 commit intomicrosoft:masterfrom
RT2Code:external-include-path
Nov 19, 2021
Merged

[vcpkg] Add vcpkg installed libraries to msvc external include path#18820
ras0219-msft merged 1 commit intomicrosoft:masterfrom
RT2Code:external-include-path

Conversation

@RT2Code
Copy link
Copy Markdown
Contributor

@RT2Code RT2Code commented Jul 5, 2021

Now that we have a way to specify external headers in Visual Studio, I thought it would be convenient to add the vcpkg include directory to it with the integrate install command.

I made a draft pull request because, even if this is a very small change, my knowledge of the vcpkg internals is superficial and I'm not entirely sure the way I did it is clean or complete.

@JackBoosY
Copy link
Copy Markdown
Contributor

It will unavaiable on the older Visual Studio version.

@JackBoosY JackBoosY added category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed requires:vcpkg-team-review This PR or issue requires someone on the vcpkg team to take a further look. labels Jul 6, 2021
@RT2Code
Copy link
Copy Markdown
Contributor Author

RT2Code commented Jul 11, 2021

True, but this is expected. Previous Visual Studio versions will just ignore this property and keep going without any problem.

@RT2Code RT2Code changed the title Add vcpkg installed libraries to msvc external include path [vcpkg] Add vcpkg installed libraries to msvc external include path Jul 11, 2021
@PhoebeHui PhoebeHui removed the requires:vcpkg-team-review This PR or issue requires someone on the vcpkg team to take a further look. label Sep 14, 2021
@JackBoosY
Copy link
Copy Markdown
Contributor

Ready for review now?

@RT2Code RT2Code marked this pull request as ready for review October 11, 2021 20:02
@RT2Code
Copy link
Copy Markdown
Contributor Author

RT2Code commented Oct 11, 2021

Sorry, I misunderstood the purpose of draft PRs, it is ready for review.

@JackBoosY JackBoosY added the requires:vcpkg-team-review This PR or issue requires someone on the vcpkg team to take a further look. label Oct 12, 2021
@JackBoosY
Copy link
Copy Markdown
Contributor

I need my colleague to confirm this.

@JackBoosY
Copy link
Copy Markdown
Contributor

Ping @ras0219-msft @BillyONeal @vicroms for review this PR.

@ras0219-msft ras0219-msft merged commit 203daf9 into microsoft:master Nov 19, 2021
@ras0219-msft
Copy link
Copy Markdown
Contributor

This looks like a straightforward improvement to me -- thanks for the PR!

@RT2Code RT2Code deleted the external-include-path branch November 19, 2021 13:50
@danielschenk
Copy link
Copy Markdown

I'm trying to get all my external code marked as external, so I can disable warnings on it. This includes vcpkg installed headers. I stumbled upon this addition and see that it was merged, but it doesn't work for me. The vcpkg include dir is passed to cl.exe with the normal /I switch.

Do I need to change any settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed requires:vcpkg-team-review This PR or issue requires someone on the vcpkg team to take a further look.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants