benchmark
benchmark copied to clipboard
[BUG] cannot find benchmark/version.h
Describe the bug A clear and concise description of what the bug is.
FAILED: _deps/google_benchmark-build/src/CMakeFiles/benchmark.dir/reporter.cc.obj
C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe /nologo /TP -DAL_LIBTYPE_STATIC -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -D_CRT_SECURE_NO_WARNINGS -I_deps\google_benchmark-src\include -I_deps\google_benchmark-src\src -I_deps\google_benchmark-build\include /DWIN32 /D_WINDOWS /GR /EHsc /W4 /Zi /O2 /Ob1 /DNDEBUG -MT /utf-8 -std:c++17 /showIncludes /Fo_deps\google_benchmark-build\src\CMakeFiles\benchmark.dir\reporter.cc.obj /Fd_deps\google_benchmark-build\src\CMakeFiles\benchmark.dir\benchmark.pdb /FS -c _deps\google_benchmark-src\src\reporter.cc
C:\Users\daego\Desktop\Projects\Light.vn-core\core\out\build\x64-Release-Cored\_deps\google_benchmark-src\src\reporter.cc(23): fatal error C1083: Cannot open include file: 'benchmark/version.h': No such file or directory
System Which OS, compiler, and compiler version are you using:
- OS: Windows
- Compiler and version: Visual Studio 2019 16.8.2
To reproduce Steps to reproduce the behavior:
I include google benchmarks through cmake's fetchcontent
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
google_benchmark
GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG main
)
FetchContent_MakeAvailable(google_benchmark)
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
It looks this bug is caused by https://github.com/google/benchmark/commit/efadf67a124528389b7faa5ed75a358528dbae22