<table><tr><td style="">sitter created this revision.<br />sitter added reviewers: kde-buildsystem, dfaure.<br />Herald added projects: Frameworks, Build System.<br />Herald added a subscriber: kde-frameworks-devel.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D24159">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>simply sets a variable when the source is under version control. use it to<br />
auto-enable Debug builds. there are also plans to switch special assertion<br />
logic on in KIO when used from git, so there definitely is a more generic<br />
use case of wanting to control behavior based on whether it the source is<br />
likely used to make a development or production build.</p>
<p>conceivably the module could be used in the future to get git rev-parse or<br />
the like, hence the generic name.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>with .git the var is true, without it is false</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>BRANCH</strong><div><div>vcs</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24159">https://phabricator.kde.org/D24159</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>docs/module/ECMSourceVersionControl.rst<br />
kde-modules/KDECompilerSettings.cmake<br />
modules/ECMSourceVersionControl.cmake</div></div></div><br /><div><strong>To: </strong>sitter, kde-buildsystem, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, bencreasy, michaelh, ngraham, bruns<br /></div>