How to write a vendor package using vcpkg?
Hi, I'm trying to package in a vendor package to avoid installing it manually on every machine. Here is the package https://github.com/minio/minio-cpp
It requires vcpkg-master. From what i understood i need to do it in 2 steps, first having an ExternalProject_Add for vcpkg and another for the minio one.
I'm struggling with the vcpkg-master one getting this error "/bin/sh: 1: /root/windrose/build/minio_cpp_vendor/vcpkg-prefix/src/vcpkg/vcpkg integrate install: not found" Here is the current macro. It's as if the command was not expanded.
macro(get_vcpkg)
ExternalProject_Add(vcpkg
GIT_REPOSITORY https://github.com/microsoft/vcpkg.git
CONFIGURE_COMMAND ""
INSTALL_COMMAND "${CMAKE_CURRENT_BINARY_DIR}/vcpkg-prefix/src/vcpkg/vcpkg integrate install"
UPDATE_COMMAND ""
BUILD_COMMAND "${CMAKE_CURRENT_BINARY_DIR}/vcpkg-prefix/src/vcpkg/bootstrap-vcpkg.sh"
)
endmacro()
Any guidelines, examples or so would be of great help. Thank you very much