diff --git a/cmake/GzBenchmark.cmake b/cmake/GzBenchmark.cmake index 2a611291..ea618802 100644 --- a/cmake/GzBenchmark.cmake +++ b/cmake/GzBenchmark.cmake @@ -101,7 +101,7 @@ function(gz_add_benchmarks) file(GENERATE OUTPUT - "${CMAKE_CURRENT_BINARY_DIR}/benchmark_targets" + "${CMAKE_CURRENT_BINARY_DIR}/$/benchmark_targets" CONTENT "${BENCHMARK_TARGETS_LIST}") @@ -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}/$/benchmark_targets --results-root ${CMAKE_BINARY_DIR}/benchmark_results ) add_dependencies(run_benchmarks ${BENCHMARK_TARGETS} version_info_target)