command line flag --std is redundant... and incorrect
See original GitHub issueI 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
add_library(${PROJECT_NAME} SHARED ${SOURCES})
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 14 CXX_STANDARD_REQUIRED ON)
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:
- Created 7 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Command-line Flags (by Category) - cSounds.com
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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed as of v4.0.0.
❤️ Thanks @unbornchikken.