dfaure created this revision. dfaure added a reviewer: kde-buildsystem. Herald added projects: Frameworks, Build System. Herald added a subscriber: kde-frameworks-devel. dfaure requested review of this revision.
REVISION 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 REPOSITORY R240 Extra CMake Modules BRANCH master REVISION DETAIL https://phabricator.kde.org/D22667 AFFECTED FILES kde-modules/KDECompilerSettings.cmake To: dfaure, kde-buildsystem Cc: kde-frameworks-devel, LeGast00n, sbergeron, bencreasy, michaelh, ngraham, bruns