Skip to content

Commit 6a07c7c

Browse files
committed
Fix Windows test getenv warnings
1 parent 5f82816 commit 6a07c7c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ target_include_directories(run_test PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
1515
target_include_directories(run_test PRIVATE "${CMAKE_SOURCE_DIR}/app/ReaderImage")
1616

1717
if (WIN32)
18+
target_compile_definitions(run_test PRIVATE _CRT_SECURE_NO_WARNINGS)
19+
1820
add_custom_command(TARGET run_test POST_BUILD
1921
COMMAND ${CMAKE_COMMAND} -E copy
2022
$<TARGET_FILE:dnnl>

0 commit comments

Comments
 (0)