arashandishgar opened a new issue, #45933: URL: https://github.com/apache/arrow/issues/45933
### 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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org