File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ macro(add_sycl_unittest test_dirname link_variant)
6
6
# Enable exception handling for these unit tests
7
7
set (LLVM_REQUIRES_EH 1 )
8
8
9
- if (MSVC AND CMAKE_BUILD_TYPE MATCHES "Debug" )
9
+ string (TOLOWER "${CMAKE_BUILD_TYPE} " build_type_lower )
10
+ if (MSVC AND build_type_lower MATCHES "debug" )
10
11
set (sycl_obj_target "sycld_object" )
11
12
set (sycl_so_target "sycld" )
12
13
else ()
@@ -50,7 +51,8 @@ endmacro()
50
51
macro (add_sycl_unittest_with_device test_dirname link_variant )
51
52
set (LLVM_REQUIRES_EH 1 )
52
53
53
- if (MSVC AND CMAKE_BUILD_TYPE MATCHES "Debug" )
54
+ string (TOLOWER "${CMAKE_BUILD_TYPE} " build_type_lower )
55
+ if (MSVC AND build_type_lower MATCHES "debug" )
54
56
set (sycl_obj_target "sycld_object" )
55
57
set (sycl_so_target "sycld" )
56
58
set (XPTI_LIB xptid )
You can’t perform that action at this time.
0 commit comments