Quick start: Abseil-C++ build on Catalina requires CMAKE_CXX_STANDARD flag
Open
- Dominant language
- HTML
- Stars
- 479
- Forks
- 545
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 5
Description
On Mac OSX Catalina, I found the abseil build failed because it did not default to a C++11 or higher standard. I replaced the cmake command,
```
cmake -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
../..
```
with:
```
cmake -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
-DCMAKE_CXX_STANDARD=17 \
../..
```
and all was well. I didn't try this with 11 because my projects all use 17, but it should work equally well.
Contributor guide
Assessment
This issue has not been assessed yet.