Skip to content

Commit 5ae46fb

Browse files
committed
Add REUSE_FROM option for workflows
1 parent f7cd81c commit 5ae46fb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cmake/O2PhysicsAddWorkflow.cmake

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
1+
# Copyright 2019-2026 CERN and copyright holders of ALICE O2.
22
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
33
# All rights not expressly granted are reserved.
44
#
@@ -27,8 +27,7 @@ include_guard()
2727
#
2828

2929
function(o2physics_add_dpl_workflow baseTargetName)
30-
31-
cmake_parse_arguments(PARSE_ARGV 1 A "" "COMPONENT_NAME;TARGETVARNAME"
30+
cmake_parse_arguments(PARSE_ARGV 1 A "" "COMPONENT_NAME;TARGETVARNAME;REUSE_FROM"
3231
"SOURCES;PUBLIC_LINK_LIBRARIES")
3332

3433
if(A_UNPARSED_ARGUMENTS)
@@ -48,6 +47,10 @@ function(o2physics_add_dpl_workflow baseTargetName)
4847
set_property(TARGET ${targetExeName} PROPERTY JOB_POOL_COMPILE analysis)
4948
set_property(TARGET ${targetExeName} PROPERTY JOB_POOL_LINK analysis)
5049

50+
if(A_REUSE_FROM)
51+
target_precompile_headers(${targetExeName} REUSE_FROM ${A_REUSE_FROM})
52+
endif()
53+
5154
set(jsonFile $<TARGET_FILE_BASE_NAME:${targetExeName}>.json)
5255

5356
add_custom_command(

0 commit comments

Comments
 (0)