#40648: cmake @2.8.11.2 does not set optimization flags in release -------------------------+---------------------- Reporter: macports@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | -------------------------+---------------------- Comment (by jeremyhu@…): Replying to [comment:4 css@…]:
What was the original intent of r110069?
To properly honor ${configure.cflags} etc
Was it to adjust release flags when a port specifies `configure.optflags`? A better approach may be to set `CMAKE_C_FLAGS_RELEASE` or `CMAKE_CXX_FLAGS_RELEASE` for such ports.
If that's what you want to do, please make that fix in the cmake PortGroup. -- Ticket URL: <https://trac.macports.org/ticket/40648#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X