csoltenborn / GoogleTestAdapter

Visual studio extension that adds support for the C++ testing framework Google Test.
Other
142 stars 102 forks source link

Test discovery fails when using vcpkg Autolink #334

Closed monamimani closed 2 years ago

monamimani commented 2 years ago

I am using google test from vcpkg. In the project property in the vcpkg section there is a Use AutoLink feature when enable ( and not specifying the lib in the linker inputs the test fails to be discovered.

csoltenborn commented 2 years ago

Sorry for answering late... I have no experience whatsoever with vcpkg (I'm not living in the C++ world any more). Please try to run your test executable from the console and check whether test discovery works that way (see trouble shootig section) - if it doesn't, this isn't anything related to GTA.

monamimani commented 2 years ago

Actually I think there is no. Issue. I didn't know that there was a 'manual-link' feature to vcpkg. So libraries copy their lib to the manual-link to prevent duplicate symbol with other libs, for example main.