Skip to content

Commit 570c76d

Browse files
authored
Make sure the file is there even if we fail craeting it (#635)
1 parent d758a79 commit 570c76d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/AddQCWorkflow.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ function(o2_add_qc_workflow)
4040
add_custom_command(
4141
OUTPUT ${jsonDumpFile}
4242
VERBATIM
43-
COMMAND echo "${qcExecutable} -b --config json://${PARSED_ARGS_CONFIG_FILE_PATH} --dump-workflow --dump-workflow-file ${jsonDumpFile} || true"
44-
COMMAND ${qcExecutable} -b --config json://${PARSED_ARGS_CONFIG_FILE_PATH} --dump-workflow --dump-workflow-file ${jsonDumpFile} || true
43+
COMMAND echo "${qcExecutable} -b --config json://${PARSED_ARGS_CONFIG_FILE_PATH} --dump-workflow --dump-workflow-file ${jsonDumpFile} || touch ${jsonDumpFile}"
44+
COMMAND ${qcExecutable} -b --config json://${PARSED_ARGS_CONFIG_FILE_PATH} --dump-workflow --dump-workflow-file ${jsonDumpFile} || touch ${jsonDumpFile}
4545
DEPENDS ${qcExecutable} ${PARSED_ARGS_CONFIG_FILE_PATH})
4646

4747
get_filename_component(filename ${jsonDumpFile} NAME_WE)

0 commit comments

Comments
 (0)