Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

command line flag --std is redundant... and incorrect

See original GitHub issue

Issue Description

I do not see the purpose of the command line flag --std… I use CMake to determine the C++ standard, c++11, gnu++11, c++14, gnu++14, etc. Yet, cmake-js seems to just append a standard… regardless of whether cmake has discovered one. Example


Will result in -std=gnu++14 on Linux, yet cmake-js will put -std=c++11 by default in CMAKE_CXX_FLAGS… and even if you pass --std gnu++14 it duplicates it on the command line.

Can there be an option to not do this and let CMake handle it?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

unbornchikkencommented, Sep 14, 2018

Fixed as of v4.0.0.

Qix-commented, Sep 14, 2018

❤️ Thanks @unbornchikken.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command-line Flags (by Category) -
The name stdout will cause audio to be written to standard output, while null results in no sound output similarly to the -n...
Read more >
CommandLine 2.0 Library Manual - Documentation - LLVM
Powerful: The CommandLine library supports many different types of arguments, from simple boolean flags to scalars arguments (strings, integers, enums, doubles) ...
Read more >
/permissive- (Standards conformance) | Microsoft Learn
The /permissive- option uses the conformance support in the current compiler version to determine which language constructs are non-conforming.
Read more >
The mypy command line - mypy 0.991 documentation
This flag will treat all variables named NAME as compile-time constants that are always false. This flag may be repeated. Disallow dynamic typing#....
Read more >
Parsing arguments to a Java command line program
This is a flag option."); } { String[] remainder = commandLine.getArgs(); System.out.print("Remaining arguments: "); for (String argument : remainder) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found