[cmake-developers] Targets with same name in different projects

Brad King brad.king at kitware.com
Thu Mar 30 07:45:01 EDT 2017

On 03/30/2017 07:13 AM, Tobias Hunger wrote:
> So I was wondering: Is this even allowed? The CMake manual says target
> names must be unique within a project.

It shouldn't be allowed.  See CMP0002 [1].


[1] https://cmake.org/cmake/help/v3.8/policy/CMP0002.html

More information about the cmake-developers mailing list