vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

Manifest mode does not offer CMake usage help

Open ras0219 opened this issue 6 years ago • 4 comments

When installing libraries in classic mode, CMake users receive very helpful notices:

>vcpkg install fmt
...
The package fmt:x86-windows provides CMake targets:

    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt fmt::fmt-header-only)

There's no way to access this help from manifest mode (it is not printed upon install). The simplest solution would be to provide a command vcpkg info which could display this help information.

ras0219 avatar Jul 06 '20 18:07 ras0219

In the mean time, I have to run ./vcpkg install fmt in another vcpkg directory without manifest file in parent directory. Since binary cache is enabled, it erforms faster by copying from cache without recompiling the libraries.

linquize avatar Aug 23 '20 08:08 linquize

PR https://github.com/microsoft/vcpkg-tool/pull/82 would improve this.

PhoebeHui avatar May 26 '21 08:05 PhoebeHui

Fixed by https://github.com/microsoft/vcpkg-tool/pull/133

autoantwort avatar Jun 11 '23 23:06 autoantwort

Thanks @autoantwort!

PhoebeHui avatar Jun 12 '23 10:06 PhoebeHui