Comments (2)
I made a pull request #10 that has some relevance to this issue.
On my branch, I specified that Travis-CI should use gcc-7 instead of gcc-5. This causes the vm to install GCC 7.4.0, which handles all of the specified compiler flags without any problem, and the build completes successfully. I claim that this is evidence that GCC 7.4.0 (I can't speak to version 7.3.x and below) supports the -Wduplicated-branches
flag.
As far as I can tell, a CMakeLists.txt file does not have any way to tell you what compiler version you should be using: it either builds or it fails.
Maybe we could add a command line option that conditionally adds warning flags based on what compiler you specify? Alternately, you could use try_compile()
to work out what warning flags are available on whatever compiler you're using, and set the warning flags accordingly.
from gui_starter_template.
Since the readme now recommends gcc 7 or above, I think this is resolved. If you disagree, you are welcome to reopen this.
from gui_starter_template.
Related Issues (20)
- CI fails with "Detected a mismatch for the compiler version between your conan profile"
- Failure upon building the project on OSX HOT 3
- Showing up as the smaller cpp_boilerplate_project HOT 2
- Builds fail for CMake < 3.18 HOT 5
- publish docker image HOT 3
- Regex broken in clang format HOT 4
- build error on OSX HOT 1
- conan install fails due to zlib version conflict HOT 1
- PROJECT_IS_TOP_LEVEL in test/CMakeLists.txt is not set prior to CMake 3.21
- Env variables left in cache causes gcc-11 builds on ubuntu to fail HOT 5
- Doesn't work with openssl dependency HOT 5
- CI Failures on Ubuntu and Windows HOT 1
- Imgui examples.
- Doxygen was removed?
- Failing configuration with VS 2017
- why a template, want to clone to my machine HOT 1
- Conan error sdl/2.0.20
- Error with CLI library
- How to change LSAN variables HOT 1
- Using static constexpr in header file leads to duplication of data.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gui_starter_template.