From dc94c80f4b1426715d6dc9d761bae20431563db1 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Mon, 16 Sep 2024 23:55:58 +0300 Subject: [PATCH] Specify _WIN32_WINNT=0x0A00 in build system scripts to target Windows 10. --- CMakeLists.txt | 1 + build/Jamfile.v2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7590452d..440af8be5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,6 +142,7 @@ endif() if(WIN32 OR CYGWIN) target_compile_definitions(boost_filesystem PRIVATE BOOST_USE_WINDOWS_H + _WIN32_WINNT=0x0A00 WIN32_LEAN_AND_MEAN NOMINMAX ) diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index f6c8e5d43..a37819021 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -161,9 +161,11 @@ project boost/filesystem windows:_CRT_SECURE_NO_WARNINGS windows:_CRT_SECURE_NO_DEPRECATE windows:BOOST_USE_WINDOWS_H + windows:_WIN32_WINNT=0x0A00 windows:WIN32_LEAN_AND_MEAN windows:NOMINMAX cygwin:BOOST_USE_WINDOWS_H + cygwin:_WIN32_WINNT=0x0A00 cygwin:WIN32_LEAN_AND_MEAN cygwin:NOMINMAX