multiple targets with same names #234
-
Hello, when adding several libs with CPMAddPackage, I get the following error because several libraries defines the "uninstall" target.
any idea how to get around this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
CMake targets are required to be uniquely named. The solution is for the mantainers of CMake buildsystems to add a unique prefix to their targets. If eigen isn't doing that, then maybe it's a new addition that should be reported and fixed, or their CMake buildsystem isn't made to be used through |
Beta Was this translation helpful? Give feedback.
-
You have to define your own targets if a library has bad CMake support. See the eigen snippet for an example how to do that. |
Beta Was this translation helpful? Give feedback.
You have to define your own targets if a library has bad CMake support. See the eigen snippet for an example how to do that.