Use find_program for cli executables
ClosedPublic

Authored by elvisangelaccio on Oct 29 2016, 10:26 AM.

Details

Summary

cmake can look for a given executable with the find_program macro. We can use
it to print warnings in the cmake output when an executable is not installed.

Test Plan

Run cmake and check the output.

Diff Detail

Repository
R36 Ark
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
elvisangelaccio retitled this revision from to Use find_program for cli executables.
elvisangelaccio updated this object.
elvisangelaccio edited the test plan for this revision. (Show Details)
elvisangelaccio added a reviewer: rthomsen.
Restricted Application added a project: Ark. · View Herald TranscriptOct 29 2016, 10:26 AM
Restricted Application added a subscriber: kde-utils-devel. · View Herald Transcript
rthomsen requested changes to this revision.Nov 2 2016, 5:32 AM
rthomsen edited edge metadata.

Please also check for the lrzip executable.

This revision now requires changes to proceed.Nov 2 2016, 5:32 AM
elvisangelaccio edited edge metadata.
  • Also look for lrzip
rthomsen accepted this revision.Nov 5 2016, 10:51 AM
rthomsen edited edge metadata.

Ship it! :)

This revision is now accepted and ready to land.Nov 5 2016, 10:51 AM
This revision was automatically updated to reflect the committed changes.