I try to build Iroha Hyperledger using Doker. after I clone the image and try to execute the build with CMake
cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=/opt/dependencies/scripts/buildsystems/vcpkg.cmake -G "Ninja"
I got this error:
Could not find toolchain file:
/opt/dependencies/scripts/buildsystems/vcpkg.cmake
Call Stack (most recent call first):
CMakeLists.txt:12 (PROJECT)
I use CMake 3.16
Any help
Commands to do (as @kyb said) and according to instruction:
apt-get update; \
apt-get -y --no-install-recommends install \
build-essential ninja-build \
git ca-certificates tar curl unzip cmake
git clone https://github.com/hyperledger/iroha.git
iroha/vcpkg/build_iroha_deps.sh
vcpkg/vcpkg integrate install
As a result You will see command like:
-DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=/opt/dependencies/scripts/buildsystems/vcpkg.cmake -G "Ninja"
cmake --build . --target irohad -- -j<number of threads>
cmake --install . --target irohad