Merge topic 'test-cuda-bin2c-null' into release-3.30

0c1d290090 Tests: Ensure CUDA bin2c output is null terminated

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9917
This commit is contained in:
Brad King 2024-10-19 14:48:15 -04:00
commit 43bb255aaa

View File

@ -6,7 +6,7 @@ foreach(obj ${OBJECTS})
get_filename_component(obj_dir ${obj} DIRECTORY)
if(obj_ext MATCHES ".ptx")
set(args --name ${obj_name} ${obj})
set(args -p 0x0 --name ${obj_name} ${obj})
execute_process(COMMAND "${BIN_TO_C_COMMAND}" ${args}
WORKING_DIRECTORY ${obj_dir}
RESULT_VARIABLE result