From f6f856cd56a091253557cec9b61d8df280ba4634 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 28 Aug 2025 17:25:09 +0200 Subject: [PATCH] build: Added note for MSVC and Emscripten if vcpkg is not configured --- cmake/build_helpers.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 5fc516a3a..27230ad30 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -809,6 +809,13 @@ macro(setUninstallTarget) endmacro() macro(addBundledLibraries) + # Make sure the build is using vcpkg on Windows and Emscripten, otherwise none of these dependencies will be found + if (MSVC OR EMSCRIPTEN) + if (NOT (CMAKE_TOOLCHAIN_FILE MATCHES "vcpkg")) + message(AUTHOR_WARNING "Your current environment probably needs to be setup to use vcpkg, otherwise none of the dependencies will be found!") + endif() + endif() + set(EXTERNAL_LIBS_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/lib/external") set(THIRD_PARTY_LIBS_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/lib/third_party") set(BUILD_SHARED_LIBS OFF)