You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! When using vcpkg in Manifest mode, include files for a library is typically placed in <project binary dir>/vcpkg_installed/<triplet>/include/<library name>. However, many libraries add the <project binary dir>/vcpkg_installed/<triplet>/include directory to their include interface, which means that linking your application to a single such library with target_link_libraries will allow your application or library to include headers from all the vcpkg libraries specified in the manifest even if they are not explicitly linked. This will allow compilation to succeed without errors, but you will get linker errors, which are typically harder to debug.
Are there any ways to mitigate this? To me this seems like a pretty big oversight, but maybe I'm missing something?
Other than this I've had a really good experience with vcpkg :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! When using vcpkg in Manifest mode, include files for a library is typically placed in
<project binary dir>/vcpkg_installed/<triplet>/include/<library name>
. However, many libraries add the<project binary dir>/vcpkg_installed/<triplet>/include
directory to their include interface, which means that linking your application to a single such library withtarget_link_libraries
will allow your application or library to include headers from all the vcpkg libraries specified in the manifest even if they are not explicitly linked. This will allow compilation to succeed without errors, but you will get linker errors, which are typically harder to debug.Are there any ways to mitigate this? To me this seems like a pretty big oversight, but maybe I'm missing something?
Other than this I've had a really good experience with vcpkg :)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions