Skip to content
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

Change the conditions to switch the Google Test libraries to link #242

Open
wants to merge 2 commits into
base: dev17
Choose a base branch
from

Conversation

kazssym
Copy link

@kazssym kazssym commented Dec 9, 2023

This patch tries to change the conditions to switch the Google Test libraries to link by using the 'Use Debug Libraries' setting of the configuration. This will make it possible to have multiple Debug configurations.

@kazssym
Copy link
Author

kazssym commented Dec 9, 2023

This patch is not tested yet. I have a problem with building on VS2022.

@kazssym kazssym changed the title Chage the conditions to link with debug libraries Chage the conditions to switch the Google Test libraries to link Dec 9, 2023
@kazssym
Copy link
Author

kazssym commented Dec 12, 2023

https://pkgs.dev.azure.com/devdiv/DevDiv/_packaging/vc-test-adapters/nuget/v3/index.json is not accessible. I hope this change has no problems for review.

@kazssym kazssym marked this pull request as ready for review December 12, 2023 09:04
@kazssym kazssym changed the title Chage the conditions to switch the Google Test libraries to link Change the conditions to switch the Google Test libraries to link Dec 16, 2023
@@ -16,28 +16,28 @@
</ItemGroup>
<ItemDefinitionGroup Condition="'$(Disable-<#= PackageNameDashes #>)' == ''">
<Link>
<AdditionalDependencies Condition="'$(Configuration)' == 'Debug' And '$(Platform)' == 'x64'">$(MSBuildThisFileDirectory)..\..\\<#= PathToBinaries #>\x64\Debug\gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are runtimes errors with this patch due to mismatches detected by the linker.
image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants