From 751eb60819ca3d47f44c8554a11326bdaf95a1f9 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 9 Jan 2019 22:53:53 -0800 Subject: [PATCH] Fix a build issue in onnxruntime_unittests.cmake (#307) --- cmake/onnxruntime_unittests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake index d05a8222bb..1eea0bd2da 100644 --- a/cmake/onnxruntime_unittests.cmake +++ b/cmake/onnxruntime_unittests.cmake @@ -41,7 +41,7 @@ function(AddTest) if (onnxruntime_USE_CUDA) # disable a warning from the CUDA headers about unreferenced local functions if (MSVC) - target_compile_options(onnxruntime_providers_cuda PRIVATE "$<$:SHELL:-Xcompiler /wd4505>" + target_compile_options(${_UT_TARGET} PRIVATE "$<$:-Xcompiler /wd4505>" "$<$>:/wd4505>") endif() endif()