[C++] Building ninja-benchmarks-maximal is failded
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
I use the following command to build `ninja-benchmarks-maximal ` ,`cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo --preset ninja-benchmarks-maximal -DARROW_DEPENDENCY_SOURCE:STRING=BUNDLED -S /home/arashandishgar/Desktop/arrow/cpp -B /home/arashandishgar/Desktop/arrow/cpp/cmake-build-ninja-benchmarks-maximal-1
`
and I get the following error
```
CMake Error at src/arrow/flight/CMakeLists.txt:56 (message):
Must build Arrow statically to link Flight tests statically
```
After, I enable `-DARROW_BUILD_STATIC:BOOL=ON`. I get the following error
`CMake Error at src/arrow/flight/sql/CMakeLists.txt:157 (target_compile_definitions):
Cannot specify compile definitions for target "arrow-flight-sql-test" which
is not built by this project.`
Finally, I enable `-DARROW_BUILD_TESTS:BOOL=ON` to solve.
I think some changes should be applied in `CMakePresets.json`.
### Component(s)
C++, Developer Tools
Contributor guide
Assessment
This issue has not been assessed yet.