← Back to team overview

dolfin team mailing list archive

Re: debug mode

 

On Mon, Oct 08, 2012 at 03:42:12PM -0500, Andy Ray Terrel wrote:
> Hello,
>
> Another question, is there an appropriate cmake flag for getting rid
> of the -O2?  Too many things are getting inlined to use the debugger
> effectively.
>
> Unfortunately setting -DCMAKE_BUILD_TYPE=Debug or Developer doesn't do
> it.  Even more surprising doing CXXFLAGS=-O0 cmake ... or cmake
> -DCMAKE_CXX_FLAGS gets overwritten as well.  I can manually futz with
> CMakeList but thought I would see what is going on here.

Try looking for CMAKE_CXX_FLAGS_DEVELOPER.

I recommend using cmake-gui and you will see it in the list.

--
Anders


Follow ups

References