Не могу понять, почему пакетный менеджер на виртуалке, почти с нуля, делает то статическаю, то динамическую библиотеку ))) Как добится установки статической либы?
$ ./vcpkg install jsoncpp
Computing installation plan...
The following packages are already installed:
jsoncpp[core]:x64-linux
Package jsoncpp:x64-linux is already installed
Total elapsed time: 60.66 us
The package jsoncpp:x64-linux provides CMake targets:
find_package(jsoncpp CONFIG REQUIRED)
target_link_libraries(main PRIVATE jsoncpp_lib)
нужно, так, но не знаю как это стабильно получать
./vcpkg install jsoncpp
Computing installation plan...
The following packages are already installed:
jsoncpp[core]:x64-linux -> 1.9.4
Package jsoncpp:x64-linux is already installed
Total elapsed time: 123.8 us
The package jsoncpp:x64-linux provides CMake targets:
find_package(jsoncpp CONFIG REQUIRED)
target_link_libraries(main PRIVATE jsoncpp_object jsoncpp_static)
наивная попытка
$ ./vcpkg install jsoncpp:x64-linux-static
Error: invalid triplet: x64-linux-static
Available architecture triplets
VCPKG built-in triplets:
x64-uwp
x64-windows-static
x64-windows
x86-windows
arm-uwp
x64-linux
x64-osx
arm64-windows
VCPKG community triplets:
s390x-linux
x86-mingw-dynamic
arm-ios
arm-mingw-dynamic
arm64-ios
x64-osx-dynamic
x64-mingw-dynamic
x64-windows-static-md
arm64-osx
arm-windows
x86-windows-static-md
x86-uwp
arm64-mingw-static
wasm32-emscripten
x86-ios
x64-openbsd
x64-mingw-static
arm64-uwp
arm64-linux
x86-windows-v120
arm64-windows-static
x64-ios
arm-linux
x86-mingw-static
x86-windows-static
arm64-mingw-dynamic
arm-mingw-static