Help: clarify DESTINATION and TYPE usage for install()
Corrects a few inaccuracies and tightens up wording around the new default destination and file type functionality of the install()
command. Key points:
- Updated the synopsis to remove the
DESTINATION
keywords now that the logic around whether they are needed is less straightforward. SinceTYPE
can now be used instead ofDESTINATION
in some cases, havingDESTINATION
in the synopsis could be confusing. All forms shown in the synopsis now have consistency in only showing the first keyword and deferring all other options to the detailed sections. - Either
DESTINATION
orTYPE
must be provided forinstall(FILES)
andinstall(DIRECTORY)
. The command signatures could have been interpreted as implying you could omit both. - If non-standard destinations are specified, they should still ideally start with one of the
GNUInstallDirs
variables, not just simply contain one. - Prefer "project" to "you" and similar wording.