Skip to content
Snippets Groups Projects

Clean up dependency of functor cache on GaudiConfig2

Merged Rosen Matev requested to merge rmatev-functor-cache into master
All threads resolved!
@@ -99,23 +99,21 @@ function(loki_functors_cache name)
endif()
endforeach()
set(inputs)
set(inputs ${LOKI_FUNCTORS_CACHE_POST_ACTION_OPTS})
foreach(input ${ARG_UNPARSED_ARGUMENTS})
if((NOT IS_ABSOLUTE input) AND (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${input}))
set(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
endif()
set(inputs ${inputs} ${input})
endforeach()
# make sure GaudiConfig2 database has been correctly completed
if(TARGET MergedConfDB2)
list(APPEND inputs MergedConfDB2)
endif()
set(deps ${inputs} ${ARG_DEPENDS})
set(tmp_ext pkl)
add_custom_command(OUTPUT ${name}_srcs/${name}.${tmp_ext}
COMMAND ${env_cmd} --xml ${env_xml}
gaudirun.py -n -o ${name}_srcs/${name}.${tmp_ext} ${inputs} ${LOKI_FUNCTORS_CACHE_POST_ACTION_OPTS}
DEPENDS ${inputs} ${LOKI_FUNCTORS_CACHE_POST_ACTION_OPTS} ${ARG_DEPENDS}
gaudirun.py -n -o ${name}_srcs/${name}.${tmp_ext} ${inputs}
DEPENDS ${deps}
COMMENT "Preprocess options for ${name}")
add_custom_command(OUTPUT ${outputs}
Loading