From e042073f9d45aecc48872fdfebcaf7d66fa19c2c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 8 Aug 2024 12:18:37 +0200 Subject: [PATCH] cmake: detect and show VCPKG in platform flags Use `VCPKG_TOOLCHAIN` to detect a vcpkg build environment. Closes #14451 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7872d18e4..4d2caf21cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,9 @@ endif() if(MSVC) set(_flags "${_flags} MSVC") endif() +if(VCPKG_TOOLCHAIN) + set(_flags "${_flags} VCPKG") +endif() message(STATUS "CMake platform flags:${_flags}") set(_flags) -- 2.47.3