Skip to content

Commit

Permalink
Use CONFIG in gz_add_benchmark to avoid Windows collisions (#340)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
  • Loading branch information
j-rivero authored Mar 2, 2023
1 parent 6dcc115 commit 14093ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/GzBenchmark.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function(gz_add_benchmarks)

file(GENERATE
OUTPUT
"${CMAKE_CURRENT_BINARY_DIR}/benchmark_targets"
"${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/benchmark_targets"
CONTENT
"${BENCHMARK_TARGETS_LIST}")

Expand All @@ -110,7 +110,7 @@ function(gz_add_benchmarks)
COMMAND python3 ${GZ_CMAKE_BENCHMARK_DIR}/run_benchmarks.py
--project-name ${PROJECT_NAME}
--version-file ${CMAKE_CURRENT_BINARY_DIR}/version_info.json
--benchmark-targets ${CMAKE_CURRENT_BINARY_DIR}/benchmark_targets
--benchmark-targets ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/benchmark_targets
--results-root ${CMAKE_BINARY_DIR}/benchmark_results
)
add_dependencies(run_benchmarks ${BENCHMARK_TARGETS} version_info_target)
Expand Down

0 comments on commit 14093ca

Please sign in to comment.