Skip to content

Commit

Permalink
[SYCL] Always use dynamic CRT for Unit tests (#1515)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Batashev <alexander.batashev@intel.com>
  • Loading branch information
Alexander Batashev authored Apr 15, 2020
1 parent d9b2d52 commit ba89e6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sycl/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
add_custom_target(SYCLUnitTests)
set_target_properties(SYCLUnitTests PROPERTIES FOLDER "SYCL tests")

foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
string(REGEX REPLACE "/MT" "/MD" ${flag_var} "${${flag_var}}")
endforeach()

# add_sycl_unittest(test_dirname SHARED|OBJECT file1.cpp, file2.cpp ...)
#
# Will compile the list of files together and link against SYCL.
Expand Down

0 comments on commit ba89e6d

Please sign in to comment.