From a28bd093657a0e1ec6c3d9ae6c9dc54d8b4d0a26 Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Wed, 3 Aug 2022 15:46:33 +0200 Subject: [PATCH] Other: CMake report error when it does not find vcpkg exe. --- internal/frontend/bridgepp/bridge_setup.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/frontend/bridgepp/bridge_setup.cmake b/internal/frontend/bridgepp/bridge_setup.cmake index 3ebafcef..77ca306d 100644 --- a/internal/frontend/bridgepp/bridge_setup.cmake +++ b/internal/frontend/bridgepp/bridge_setup.cmake @@ -32,7 +32,9 @@ if (WIN32) else() find_program(VCPKG_EXE "${VCPKG_ROOT}/vcpkg") endif() - +if (NOT VCPKG_EXE) + message(FATAL_ERROR "vcpkg is not installed. Run build.sh (macOS/Linux) or build.ps1 (Windows) first.") +endif() # For now we support only a single architecture for macOS (ARM64 or x86_64). We need to investigate how to build universal binaries with vcpkg. if (APPLE)