martinus / nanobench

Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
https://nanobench.ankerl.com
MIT License
1.43k stars 82 forks source link

Setup with vcpkg #69

Closed james-mxr closed 1 year ago

james-mxr commented 2 years ago

Trying to add nanobench via vcpkg manifest yields bizarre results. vcpkg manifest dependency looks like so,

...
    "dependencies": [
        "xtensor-blas",
        "nanobench",
        {
            "name": "highfive",
            "default-features": false,
            "features": [ "xtensor" ]
        },
...

It only seems to be happy if I don't add anything to CMake at all. If I try to find_package(nanobench) or link against nanobench it complains that it can't be found or that I have to add to CMake_Prefix_List etc

Is not having anything setup against it in CMake standard practice for this or is there some wizardry going on?