Commits


Haocheng Liu authored and GitHub committed 68dc40a10bc
GH-14917: [C++] Error out when GTest is compiled with a C++ standard lower than 17 (#34765) ### Rationale for this change On MacOS, the system GTest from brew uses C++14 while arrow is default to C++17. The build will fail at the linking stage unless users explicity uses bundled GTest. Users are often confused by unclear linking errors. ### What changes are included in this PR? At CMake configuration time, the CMake code will automatically detect and compare the C++ standard used by GTest and arrow. If a mismatch is detected, CMake will error out and privide meaningful guidance. It will apply both to linux and MacOS. ### Are these changes tested? Covered by Arrow github test worker and tested on local host. ### Are there any user-facing changes? Yes, now users are given better guidance when building Arrow against the system GTest. * Closes: #14917 * Closes: #14779 Authored-by: Haocheng Liu <lbtinglb@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>