Skip to content

Commit

Permalink
Added info regarding folder/target prefixes, and added dependency to …
Browse files Browse the repository at this point in the history
…grapher-plot for graph generation
  • Loading branch information
JPenuchot committed Mar 30, 2022
1 parent f0d134b commit f25572c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cmake/benchmarking.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
#@
## =============================================================================

# Setting executable/target prefix.
# ctbench_FOUND being false means ctbench was imported inside of the tree.
# ctbench_FOUND being true means ctbench found through find_package.
if(NOT ctbench_FOUND)
set(GRAPHER_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/grapher/ PARENT_SCOPE)
set(TTW_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/ttw/ PARENT_SCOPE)

message(ctbench was imported)
message(GRAPHER_PREFIX: ${GRAPHER_PREFIX})
message(TTW_PREFIX: ${TTW_PREFIX})
else()
set(GRAPHER_PREFIX ctbench:: PARENT_SCOPE)
set(TTW_PREFIX ctbench:: PARENT_SCOPE)
endif()

## =============================================================================
Expand Down Expand Up @@ -176,6 +178,10 @@ function(ctbench_add_graph category config)
DEPENDS ${config_path} ${ARGN}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_dependencies(ctbench-graph-all ${category})

if(NOT ctbench_FOUND)
add_dependencies(${target_name} ctbench-grapher-plot)
endif()
endfunction(ctbench_add_graph)

#!
Expand Down

0 comments on commit f25572c

Please sign in to comment.