1. 27 May, 2019 2 commits
    • Rolf Eike Beer's avatar
      FindLibAStyle: remove confusing default version · 5baef620
      Rolf Eike Beer authored
      On a system without libastyle installed the output was:
      
        -- Could NOT find LibAStyle: Found unsuitable version "0", but required is at least "3.1" (found LibAStyle_LIBRARIES-NOTFOUND)
      
      Without this default it will be:
      
        -- Could NOT find LibAStyle (missing: LibAStyle_LIBRARIES LibAStyle_INCLUDE_DIR) (Required is at least version "3.1")
      
      While at it move the code for the version autodetection around a bit to simplify
      it a bit.
      5baef620
    • Pino Toscano's avatar
      astyle: support the system astyle library · b2d20222
      Pino Toscano authored
      Summary:
      Find the astyle library installed in the system, and use it instead of
      the embedded copy (which is still used if the system library is not
      available).
      
      Test Plan:
      Builds fine with, and without a system libastyle (the embedded copy is used in the latter case).
      `test_astyle` passes in both cases.
      I did not try the plugin for real, though.
      
      Reviewers: mwolff, kossebau, apol
      
      Reviewed By: mwolff, apol
      
      Subscribers: lbeltrame, arrowd, cullmann, mwolff, kossebau, kdevelop-devel
      
      Tags: #kdevelop
      
      Differential Revision: https://phabricator.kde.org/D17760
      b2d20222