diff options
Diffstat (limited to 'src/tests/units/CMakeLists.txt')
-rw-r--r-- | src/tests/units/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/units/CMakeLists.txt b/src/tests/units/CMakeLists.txt index 654355b7..afc7349b 100644 --- a/src/tests/units/CMakeLists.txt +++ b/src/tests/units/CMakeLists.txt @@ -17,5 +17,10 @@ foreach(test ${UNIT_TESTS}) target_link_libraries("run_${test}" marian ${EXT_LIBS} Catch) endif(CUDA_FOUND) + if(MSVC) + # Disable C4305: truncation from 'double' to '_Ty' + target_compile_options("run_${test}" PUBLIC /wd4305) + endif(MSVC) + add_test(NAME ${test} COMMAND "run_${test}") endforeach(test) |