define NOMINMAX in the CMakefile to fix std::min and std::max on MSVC (#1308)

This commit is contained in:
Ben Ashbaugh
2021-08-28 02:21:34 -07:00
committed by GitHub
parent 070f8c0c0e
commit 39fdb462be
6 changed files with 7 additions and 13 deletions

View File

@@ -14,11 +14,6 @@
// limitations under the License.
//
// This is needed for std::numeric_limits<>::min() and max() to work on Windows.
#if defined(_WIN32)
#define NOMINMAX
#endif
#include <algorithm>
#include <limits>
#include <numeric>