diff options
author | liu <liuqiang2016@gmail.com> | 2023-01-19 15:48:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 07:48:09 +0000 |
commit | 991b39edbe437a8ee0ebefe815387a05004d5486 (patch) | |
tree | 46156624d440e7de2de68297e8965e84692cff9b | |
parent | 81799203f111fb65ade3aebcc895d33feea9180f (diff) | |
download | flatbuffers-991b39edbe437a8ee0ebefe815387a05004d5486.tar.gz flatbuffers-991b39edbe437a8ee0ebefe815387a05004d5486.tar.bz2 flatbuffers-991b39edbe437a8ee0ebefe815387a05004d5486.zip |
Use CMAKE_CURRENT_SOURCE_DIR in benchmark cpp path (#7781)
Co-authored-by: Derek Bailey <derekbailey@google.com>
-rw-r--r-- | benchmarks/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 272a2b7b..2842d60d 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -27,7 +27,7 @@ FetchContent_MakeAvailable( googlebenchmark ) -set(CPP_BENCH_DIR cpp) +set(CPP_BENCH_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cpp) set(CPP_FB_BENCH_DIR ${CPP_BENCH_DIR}/flatbuffers) set(CPP_RAW_BENCH_DIR ${CPP_BENCH_DIR}/raw) set(CPP_BENCH_FBS ${CPP_FB_BENCH_DIR}/bench.fbs) |