mapbox / mapbox/hpp-skel

-std=gnu++11 vs -std=c++11

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CMake
Stars
116
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Cmake, for some reason, defaults to `-std=gnu++11` instead of `-std=c++11`. We want to specify the latter rather than the former. This ticket stands to track doing this in a clean and concise way.

It looks as simple as doing `set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")` per how OSRM does this: https://github.com/Project-OSRM/osrm-backend/blob/c718f140fa46d1fa0ee432289152c4328e31453a/CMakeLists.txt#L383-L386. More background from @daniel-j-h at https://github.com/mapbox/spatial-algorithms/issues/9#issuecomment-298584856.

Contributor guide

Open the contributing guide

Research direction

Read the repository's CMake configuration first, then compare it with the referenced OSRM CMakeLists.txt example. Confirm the cleanest way to configure the project for -std=c++11 rather than -std=gnu++11, and verify that generated build flags use the requested standard.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.