From c5138e2f40a4d8fc74f5d69ed36de0ff5f4b2978 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sat, 16 Mar 2024 19:34:16 -0500 Subject: [PATCH] Add nominmax for windows.h --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 851c1e9..23bd55f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -288,6 +288,8 @@ target_compile_features( PRIVATE cxx_std_11 ) +target_compile_definitions(${target_name} PRIVATE NOMINMAX) + if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ")