mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
Fix a build issue in onnxruntime_unittests.cmake (#307)
This commit is contained in:
parent
d342147255
commit
751eb60819
1 changed files with 1 additions and 1 deletions
|
|
@ -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 "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /wd4505>"
|
||||
target_compile_options(${_UT_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler /wd4505>"
|
||||
"$<$<NOT:$<COMPILE_LANGUAGE:CUDA>>:/wd4505>")
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in a new issue