Make the default build type "Debug" when compiling a git checkout.

Authored by dfaure on Jul 22 2019, 10:16 PM.

Description

Make the default build type "Debug" when compiling a git checkout.

Summary:
The idea comes from
https://blog.kitware.com/cmake-and-the-default-build-type/
but I adapted it to leave it empty for tarballs, to avoid messing up
distribution packaging.

The goal is to make this more sensible for [new] developers who just
run cmake and end up with a "no debug symbols, no optimizations" build,
i.e. the one and only completely useless combination of those two flags.

Possible risk: distributions who compile from git checkouts...

Test Plan: "mkdir build ; cd build ; cmake .." in kblog leads to CMAKE_BUILD_TYPE=Debug

Reviewers: kde-buildsystem, cgiboudeaux

Reviewed By: cgiboudeaux

Subscribers: cgiboudeaux, apol, kde-frameworks-devel

Tags: Frameworks, Build System

Differential Revision: https://phabricator.kde.org/D22667

Details

Committed
dfaureJul 23 2019, 10:46 AM
Reviewer
krop
Differential Revision
D22667: Make the default build type "Debug" when compiling a git checkout.
Parents
R240:5478a88d5ffe: GIT_SILENT Upgrade ECM version to 5.61.0.
Branches
Unknown
Tags
Unknown