| Summary: | [Patch] Don't override the default CMAKE_C_FLAGS | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Magnus Bjerke Vik <mbvett> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | icculus, mbvett |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Patch to remove CMAKE_C_FLAGS defaults | ||
|
Description
Magnus Bjerke Vik
2015-04-08 08:01:36 UTC
A better question might be why CMake should care about $CFLAGS at all...that is a configure idiom. CMake users that care about explicitly setting the equivalent of CFLAGS know that they should set CMAKE_C_FLAGS manually. I'm inclined to say we should leave this alone for 2.0.4 and then remove the $CFLAGS check completely for 2.0.5 (maybe even with an error if it _is_ set to warn that this isn't the right way to do things in CMake). Sam: does that sound reasonable? --ryan. (In reply to Ryan C. Gordon from comment #1) > A better question might be why CMake should care about $CFLAGS at all...that > is a configure idiom. CMake users that care about explicitly setting the > equivalent of CFLAGS know that they should set CMAKE_C_FLAGS manually. > > I'm inclined to say we should leave this alone for 2.0.4 and then remove the > $CFLAGS check completely for 2.0.5 (maybe even with an error if it _is_ set > to warn that this isn't the right way to do things in CMake). > > Sam: does that sound reasonable? > > --ryan. I agree. The CFLAGS check should be removed. 2.0.4 was released a while back. Are we proceeding with this? |