mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
suppress MSVC strdup warning (#1314)
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)
|
||||
# Don't warn about using the portable "strdup" function.
|
||||
add_compile_definitions(_CRT_NONSTDC_NO_DEPRECATE)
|
||||
# Fix std::min and std::max handling with windows.harness.
|
||||
add_compile_definitions(NOMINMAX)
|
||||
endif()
|
||||
|
||||
@@ -21,8 +21,3 @@ set(HARNESS_SOURCES
|
||||
)
|
||||
|
||||
add_library(harness STATIC ${HARNESS_SOURCES})
|
||||
|
||||
if(MSVC)
|
||||
# Don't warn about using the portable "strdup" function.
|
||||
target_compile_definitions(harness PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
|
||||
endif()
|
||||
Reference in New Issue
Block a user