Skip to content

Commit ba89e6d

Browse files
author
Alexander Batashev
authored
[SYCL] Always use dynamic CRT for Unit tests (#1515)
Signed-off-by: Alexander Batashev <[email protected]>
1 parent d9b2d52 commit ba89e6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sycl/unittests/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
add_custom_target(SYCLUnitTests)
22
set_target_properties(SYCLUnitTests PROPERTIES FOLDER "SYCL tests")
33

4+
foreach(flag_var
5+
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
6+
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
7+
string(REGEX REPLACE "/MT" "/MD" ${flag_var} "${${flag_var}}")
8+
endforeach()
9+
410
# add_sycl_unittest(test_dirname SHARED|OBJECT file1.cpp, file2.cpp ...)
511
#
612
# Will compile the list of files together and link against SYCL.

0 commit comments

Comments
 (0)