Skip to content

Commit 3da63dc

Browse files
author
sergei
authored
[SYCL] Make spelling of Debug value for CMAKE_BUILD_TYPE variable case insensitive (#4069)
Signed-off-by: Kanaev <[email protected]>
1 parent c121bbb commit 3da63dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/cmake/modules/AddSYCLUnitTest.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ macro(add_sycl_unittest test_dirname link_variant)
66
# Enable exception handling for these unit tests
77
set(LLVM_REQUIRES_EH 1)
88

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")
1011
set(sycl_obj_target "sycld_object")
1112
set(sycl_so_target "sycld")
1213
else()

0 commit comments

Comments
 (0)