Set NOMINMAX on win32.

This commit is contained in:
Bartosz Taudul 2024-03-16 15:03:07 +01:00
parent 699d93c7ae
commit 1bada6a6fd
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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") set(ENV{PKG_CONFIG_PATH} "${ROOT_DIR}/vcpkg_installed/x64-windows-static/lib/pkgconfig")
endif() 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 # Dependencies are taken from the system first and if not found, they are pulled with CPM and built from source
include(FindPkgConfig) include(FindPkgConfig)