From 5a81f4250147d63e9708269e50cdf5a2545eb5d7 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 15 Feb 2024 20:03:37 +0100 Subject: [PATCH] try setting MSVC_VERSION 143 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab3ab5bc3..0617b9100 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,6 +172,8 @@ if (ZMQ_PREFIX STREQUAL "bundled") if(${bundled_libsodium_POPULATED} AND NOT EXISTS "${libsodium_lib}") message(STATUS "building bundled libsodium") if (MSVC) + set(LIBSODIUM_MSVC_VERSION "143" CACHE STRING "MSVC version to build libsodium") + set(MSCV_VERSION ${LIBSODIUM_MSVC_VERSION}) find_package(Vcvars REQUIRED) # TODO: allow picking msvc build? list(APPEND libsodium_build