From 47876a326a5d4cbcd132f276fabaf16e0842ead8 Mon Sep 17 00:00:00 2001 From: Jules P?nuchot Date: Mon, 28 Mar 2022 16:16:33 +0200 Subject: [PATCH] Trying out CMAKE_BINARY_DIR as a working directory for targets generated by ctbench_add_graph --- benchmarking.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarking.cmake b/benchmarking.cmake index 0f1f3dc..c165fe4 100644 --- a/benchmarking.cmake +++ b/benchmarking.cmake @@ -117,6 +117,7 @@ function(ctbench_add_graph category config) add_custom_target( ${category} COMMAND grapher-plot --output=${category} --config=${config_path} ${ARGN} - DEPENDS ${config_path} ${ARGN}) + DEPENDS ${config_path} ${ARGN} + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) add_dependencies(ctbench-graph-all ${category}) endfunction(ctbench_add_graph)