Opened 13 years ago
Closed 13 years ago
#489 closed defect (fixed)
CMAKE_CXX_FLAGS overrides -std=gnu++0x
Reported by: | jyasskin | Owned by: | mloskot |
---|---|---|---|
Priority: | minor | Milestone: | 3.3.2 |
Component: | Default | Version: | main |
Severity: | Unassigned | Keywords: | cmake |
Cc: |
Description
I was trying to fix some problems in geos when building in C++0x mode, and I discovered that CMakeLists.txt puts -ansi after my custom build flags, overriding the -std setting. Here's a patch that fixes this.
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | ansi_first.patch added |
---|
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Keywords: | cmake added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Of course, you intended to override _gnu_++0x and change it to c++0x, but -ansi means -std=c++98 (http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/C-Dialect-Options.html), so it overrides -std=c++0x too.