diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05772e63c..3cdc99091 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -794,9 +794,9 @@ jobs: cmake --build . --target benchmark-clad -j4 # Compare: - cd benchmark pip3 install -r ./googlebenchmark-prefix/src/googlebenchmark/tools/requirements.txt - COMPARER='./googlebenchmark-prefix/src/googlebenchmark/tools/compare.py' + COMPARER="$(pwd)/googlebenchmark-prefix/src/googlebenchmark/tools/compare.py" + cd benchmark for baseline in *-$hash.json do common=${baseline%$hash.json} diff --git a/cmake/modules/GoogleBenchmark.cmake b/cmake/modules/GoogleBenchmark.cmake index 70c05e069..8e74543bd 100644 --- a/cmake/modules/GoogleBenchmark.cmake +++ b/cmake/modules/GoogleBenchmark.cmake @@ -1,6 +1,6 @@ include(ExternalProject) -set(GBENCHMARK_PREFIX "${CMAKE_BINARY_DIR}/benchmark/googlebenchmark-prefix") +set(GBENCHMARK_PREFIX "${CMAKE_BINARY_DIR}/googlebenchmark-prefix") set(GBENCHMARK_LIBRARY_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}benchmark${CMAKE_STATIC_LIBRARY_SUFFIX}) # Remove the coverage flags when compiling external libraries.