[cmake-developers] Ninja and add_subdirectory EXCLUDE_FROM_ALL
Brad King
brad.king at kitware.com
Thu Mar 10 09:28:49 EST 2016
On 03/10/2016 02:58 AM, Charles Huet wrote:
> Maybe even adding such a target for each 'project', which regroups all the
> targets of a project would make sense, as these are grouped as 'projects'
[snip]
> To avoid name collisions these could be suffixed with something like '_dir',
> '_project' or such.
>
> Do you think this would be a good enough solution ?
I think such targets makes sense and does not disallow full subproject
generation in the future. To avoid name collisions we should use a
prefix or suffix with a "/" in its name since that is not allowed by
CMake for the actual target names.
Thanks,
-Brad
More information about the cmake-developers
mailing list