microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.14k stars 6.38k forks source link

vcpkg don`t print usage info (WSL, Ubuntu 18, Cmake 3.10) #41696

Open 9241304 opened 1 week ago

9241304 commented 1 week ago

I'm trying to use vcpkg in WSL Ubuntu 18, but when I'm adding dependency, vcpkg don`t print usage info

cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
-- Running vcpkg install
-- Running vcpkg install - done
...

I`m using vcpkg in manifest mode and I see it install necessary packages, project is buildable. The same config in windows works as expected

CMakeLists.txt:

cmake_minimum_required(VERSION 3.10)

set(CMAKE_TOOLCHAIN_FILE $ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)

project(vls)

....

vcpkg.json:

{
    "name": "vls",
    "version": "1.0",
    "dependencies": [ 
        "cppzmq",
        "zlib"
    ]
}
MonicaLiu0311 commented 1 week ago

Most packages in vcpkg have usage, but a few do not. This depends on whether the upstream provides Config files/pc files. Which port do you mean has no usage?

9241304 commented 1 week ago

All packages in example have usage info, but vcpkg doesn`t dislay it in WSL/Ubuntu 18. In Windows all works as expected, I see usage info

dg0yt commented 1 week ago

Ubuntu 18

Which version CMake do you use there? The system provided version in Ubuntu 18 will no longer be supported by vcpkg soon.

(Might be unrelated.)

9241304 commented 1 week ago

Ubuntu 18

Which version CMake do you use there? The system provided version in Ubuntu will no longer be supported by vcpkg soon.

(Might be unrelated.)

As I wrote in title, I`m using CMake 3.10 (3.10.2). Used... I just upgraded it to 3.25, and now I see usage lines, thanks! Can you please answer which version of Cmake is minimal? In official docs I see also 3.10 (https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-powershell)

dg0yt commented 1 week ago

Can you please answer which version of Cmake is minimal?

Ubuntu 18 is out of support, Ubuntu 20 has 3.16.

FTR for building ports, vcpkg downloads CMake 3.30.