<p>CMake commands are sometimes given in upper and lower case.<br>
Previously uppercase commands had been required but now commands are<br>
case-insensitive and lowercase commands are preferred. Conversion to lowercase<br>
commands have been implemented in other open source projects such as ITK vxl<br>
and BRAINSTools, and is the preferred style for KDE. Consistent style<br>
practices help to improve readability and maintainability of code.</p>

<p>This was implemented with the shell script:<br>
NOTE: MUST USE GNU compliant version of sed<br>
    cmake --help-command-list \<br>
    | grep -v "cmake version" \<br>
    | while read c; do<br>
        echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'(\s<em>)(/'"$c"'\1(/g'<br>
      done &gt;convert.sed \<br>
    &amp;&amp; git ls-files -z -- bootstrap '</em>.cmake' '<em>.cmake.in' '</em>CMakeLists.txt' \<br>
       | xargs -0 gsed -i -f convert.sed \<br>
    &amp;&amp; rm convert.sed</p>

<p>This is a reimplementation of ITK commit<br>
896f6b9220255bed1b3a1409af5257146b54e261<br>
STYLE: Convert CMake-language commands lower case</p>

<p>Fixes <a href="https://github.com/mlpack/mlpack/issues/538" class="issue-link js-issue-link" data-url="https://github.com/mlpack/mlpack/issues/538" data-id="137831428" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#538</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/mlpack/mlpack/pull/584'>https://github.com/mlpack/mlpack/pull/584</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Converts CMake commands to lower case</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-0">CMake/ARMA_FindACML.cmake</a>
    (38)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-1">CMake/ARMA_FindACMLMP.cmake</a>
    (38)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-2">CMake/ARMA_FindARPACK.cmake</a>
    (36)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-3">CMake/ARMA_FindBLAS.cmake</a>
    (40)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-4">CMake/ARMA_FindCBLAS.cmake</a>
    (42)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-5">CMake/ARMA_FindCLAPACK.cmake</a>
    (44)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-6">CMake/ARMA_FindLAPACK.cmake</a>
    (40)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-7">CMake/ARMA_FindMKL.cmake</a>
    (80)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-8">CMake/ARMA_FindOpenBLAS.cmake</a>
    (38)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-9">CMake/FindLibDL.cmake</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-10">CMake/FindMatlabMex.cmake</a>
    (84)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-11">CMake/TargetDistclean.cmake</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/584/files#diff-12">CMakeLists.txt</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/mlpack/mlpack/pull/584.patch'>https://github.com/mlpack/mlpack/pull/584.patch</a></li>
  <li><a href='https://github.com/mlpack/mlpack/pull/584.diff'>https://github.com/mlpack/mlpack/pull/584.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/584">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDs_aOzQioK3dOOCCsA_8EpdVby2ks5pvudagaJpZM4H1cgN.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/584"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>