-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] CMake error when using PyBind11 and range-v3 as submodules #2420
Comments
I was a little worried about making that "headers" due to this issue. I have an idea, actually... |
The only non-imported target is headers, so working around this is pretty easy. Here's the idea: Rename The other alternative would be to name it something different if this is a subdirectory, but that can be troublesome. |
* fix: reduce target collision in add_submodule mode Closes #2420 * fix: update CMakeLists.txt
The PR that introduced this error is #2370
add_library cannot create target "headers" because another target with the
same name already exists. The existing target is a custom target created
in source directory "extern/range-v3". See
documentation for policy CMP0002 for more details.
Would it be possible to rename the target to something less generic to avoid this issue?
(I opened another issue in range-v3 repo).
Thanks.
The text was updated successfully, but these errors were encountered: