mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
suppress MSVC strdup warning (#1314)
This commit is contained in:
@@ -115,6 +115,8 @@ endif()
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Don't warn when using standard non-secure functions.
|
# Don't warn when using standard non-secure functions.
|
||||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
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.
|
# Fix std::min and std::max handling with windows.harness.
|
||||||
add_compile_definitions(NOMINMAX)
|
add_compile_definitions(NOMINMAX)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -21,8 +21,3 @@ set(HARNESS_SOURCES
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_library(harness STATIC ${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