From: Viktor Szakats Date: Thu, 8 Aug 2024 10:18:37 +0000 (+0200) Subject: cmake: detect and show VCPKG in platform flags X-Git-Tag: curl-8_10_0~326 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e042073f9d45aecc48872fdfebcaf7d66fa19c2c;p=thirdparty%2Fcurl.git cmake: detect and show VCPKG in platform flags Use `VCPKG_TOOLCHAIN` to detect a vcpkg build environment. Closes #14451 --- 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)