From 1bada6a6fd9da992d3d039cb42798148d8b6099e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 16 Mar 2024 15:03:07 +0100 Subject: [PATCH] Set NOMINMAX on win32. --- cmake/vendor.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/vendor.cmake b/cmake/vendor.cmake index a9152759..b66e286d 100644 --- a/cmake/vendor.cmake +++ b/cmake/vendor.cmake @@ -8,6 +8,10 @@ if (EXISTS ${ROOT_DIR}/vcpkg_installed/x64-windows-static/lib/pkgconfig) set(ENV{PKG_CONFIG_PATH} "${ROOT_DIR}/vcpkg_installed/x64-windows-static/lib/pkgconfig") endif() +if(WIN32) + add_definitions(-DNOMINMAX) +endif() + # Dependencies are taken from the system first and if not found, they are pulled with CPM and built from source include(FindPkgConfig)