On 2013-04-04 10:19, Markus Blatt wrote:
>> Usually I assume that a package is compiled with "-O2 -g" if I do not
>> adjust anything.

On 2013-04-04 12:19, Arne Morten Kvarving wrote:
cmake defaults to no optimizations *without* symbols unless the
CMakeLists.txt has hackery to set a default profile if none is given.

But in this case there *is* hackery :-) to set the default profile, more specifically in cmake/Modules/OpmDefault.cmake, line 8.

Debug profile is chosen by default because most of the time you are building from source code to develop and/or debug.

However, it is an equally valid stance that those setting up a debug environment should do the configuration (QtCreator for instance require the variable to be present in "cache" so it must be specified anyway), and those just extracting a tarball should get a release build.

Technically this is an incredibly quick change; it is rather a matter of policy. (It seems that DUNE-Autotools has -O2, but DUNE-CMake has not (yet)). I am open to change this.

Debug symbols are always generated, regardless of the debug/release profile (through more hackery...)

--
        Roland.

_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to