Skip to content

Commit 423fab4

Browse files
committed
cmake: convert string literal warning to error
1 parent 4707dc6 commit 423fab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cmake/gen_gpu_kernel.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ endif()
3636

3737
string(LENGTH "${cl_file_lines}" len)
3838
if(len GREATER 65535)
39-
message(WARNING "Windows requires string literals to fit in 65535 bytes. Please split ${CL_FILE}.")
39+
message(FATAL_ERROR
40+
"Windows requires string literals to fit in 65535 bytes. Please split ${CL_FILE}.")
4041
endif()
4142

4243
get_filename_component(cl_file_name ${CL_FILE} NAME_WE)

0 commit comments

Comments
 (0)