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

@@ -1707,7 +1707,7 @@ Version get_max_OpenCL_C_for_context(cl_context context)
else
{
current_version =
(std::min)(device_version, current_version);
std::min(device_version, current_version);
}
});
return current_version;

View File

@@ -333,9 +333,6 @@ std::string exe_dir()
#include <windows.h>
#if defined(max)
#undef max
#endif
#include <cctype>
#include <algorithm>