# benchmark error

**URL:** https://discourse.cmake.org/t/benchmark-error/10316
**Category:** Code
**Created:** [March 7, 2024, 4:21pm UTC](https://discourse.cmake.org/t/benchmark-error/10316 "2024-03-07T16:21:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![maiya](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@maiya](https://discourse.cmake.org/u/maiya)
#### Post date: [March 7, 2024, 4:21pm UTC](https://discourse.cmake.org/t/benchmark-error/10316/1 "2024-03-07T16:21:16Z")

</div>

Hi Community,

While building with cmake, getting benchmark errors like as below

```auto
-- Building for architecture ARCH=x64
-- OPENTELEMETRY_ABI_VERSION_NO=1
-- OPENTELEMETRY_VERSION=1.14.2
GTEST_INCLUDE_DIRS =
GTEST_BOTH_LIBRARIES = GTest::gtest;GTest::gtest_main
CMake Error at CMakeLists.txt:627 (find_package):
  Could not find a package configuration file provided by "benchmark" with
  any of the following names:

    benchmarkConfig.cmake
    benchmark-config.cmake

  Add the installation prefix of "benchmark" to CMAKE_PREFIX_PATH or set
  "benchmark_DIR" to a directory containing one of the above files. If
  "benchmark" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!

```

This is the cmake code

```auto
if(WITH_BENCHMARK)
    # Benchmark respects the CMAKE_PREFIX_PATH
    find_package(benchmark CONFIG REQUIRED)
  endif()

```

Any help would appreciated. Thank you.  
Regards,  
Maiya

---

<div class="post-metadata">

### Author: ![retif](https://discourse.cmake.org/user_avatar/discourse.cmake.org/retif/32/1776_2.png) [@retif](https://discourse.cmake.org/u/retif)
#### Post date: [March 7, 2024, 5:34pm UTC](https://discourse.cmake.org/t/benchmark-error/10316/2 "2024-03-07T17:34:44Z")

</div>

> While building with cmake

Building what exactly?

> Could not find a package configuration file provided by “benchmark”

Is this “benchmark” thing available/discoverable in your environment?

---

<div class="post-metadata">

### Author: ![maiya](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@maiya](https://discourse.cmake.org/u/maiya)
#### Post date: [March 11, 2024, 4:39am UTC](https://discourse.cmake.org/t/benchmark-error/10316/3 "2024-03-11T04:39:10Z")

</div>

Trying to install opentelemetry in our system. and we are getting the above error.

---

<div class="post-metadata">

### Author: ![retif](https://discourse.cmake.org/user_avatar/discourse.cmake.org/retif/32/1776_2.png) [@retif](https://discourse.cmake.org/u/retif)
#### Post date: [March 11, 2024, 8:50am UTC](https://discourse.cmake.org/t/benchmark-error/10316/4 "2024-03-11T08:50:44Z")

</div>

Does this “opentelemetry” have a website or repository, so one could take a look at its project?  
Also, first you said you were building, and now you are “trying to install”. How is CMake involved in that installation process?
