[cmake-developers] Invalid/Reserved target names
Matthew Woehlke
matthew.woehlke at kitware.com
Fri Nov 15 11:24:54 EST 2013
On 2013-11-15 04:05, Nils Gladitz wrote:
> I would like to hijack/extend Stephen's changes in
> 05f5fde0eb83c0e49aab3214f28a098861aa3313
> to also disallow target names that have been implicitly reserved by some
> of the generators.
>
> This list might not be complete but I assume it would be at least:
> all, help, clean, edit_cache, rebuild_cache, test, package,
> package_source, PACKAGE, ZERO_CHECK
>
> Would anyone be opposed to this?
> Could I extend the existing policy, should I create a new one or would
> it be ok without any policy even?
I haven't done so yet, but I've considered once or twice creating a
'clean' target in case the generator is ninja. Possibly someone has
already done that. Maybe only disallow target names that the generator
actually uses? (Or should we teach CMake to make a 'clean' target for
ninja? :-) That could probably be done separately, but if 'clean' is
disallowed unconditionally it feels like that should be "on the radar"
of things to do.)
--
Matthew
More information about the cmake-developers
mailing list