Commit 68dc40a
authored
### 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>
1 parent 5dde5d4 commit 68dc40a
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
2232 | 2239 | | |
2233 | 2240 | | |
2234 | 2241 | | |
| |||
0 commit comments