mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
define NOMINMAX in the CMakefile to fix std::min and std::max on MSVC (#1308)
This commit is contained in:
@@ -115,6 +115,8 @@ endif()
|
||||
if(MSVC)
|
||||
# Don't warn when using standard non-secure functions.
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
# Fix std::min and std::max handling with windows.harness.
|
||||
add_compile_definitions(NOMINMAX)
|
||||
endif()
|
||||
|
||||
if( WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" )
|
||||
|
||||
Reference in New Issue
Block a user