Silence pointless warnings on TestBuilds.

The TestBuild_* targets were not getting the _SCL_SECURE_NO_WARNINGS
define set on MSVC.
This commit is contained in:
David C. Lonie 2017-03-16 11:13:58 -04:00
parent 4cad9b11df
commit 8ffaa83be1

@ -127,6 +127,11 @@ function(vtkm_add_header_build_test name dir_prefix use_cuda)
set_source_files_properties(${hfiles}
PROPERTIES HEADER_FILE_ONLY TRUE
)
if(MSVC)
vtkm_setup_msvc_properties(TestBuild_${name})
endif()
# Send the libraries created for test builds to their own directory so as to
# not polute the directory with useful libraries.
set_target_properties(TestBuild_${name} PROPERTIES