openframeworks / openframeworks/openFrameworks

Add mechanism to explicitly set c++ version in config.make

Open
#5,520 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

makefile
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Currently the c++ version (e.g. c++11, c++14) used by a project is determined by ./libs/openFrameworksCompiled/project/makefileCommon/config.linux.common.mk (on Linux). Provide a way such that the version can be overridden by a project in config.make.

This is useful for projects needing to be compiled on different platforms whose c++ version support differs. By being able to be explicit about a version a project can set a version that would be supported across all targeted platforms.

Related forum thread: How can I use c++11 instead of c++14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading libs/openFrameworksCompiled/project/makefileCommon/config.linux.common.mk to see how the C++ version is currently selected, then trace how a project's config.make is loaded. Check the existing project configuration flow across supported platforms. Done means a project can explicitly override the C++ version while the current default remains unchanged.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.