-
Notifications
You must be signed in to change notification settings - Fork 195
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
Issues with specific packages #275
Comments
Hey @cfabrito, thanks for using CPM.cmake! Unfortunately, if a library's CMakeLists isn't designed for being used as a subdirectory by other CMake projects, there is a chance that there will be conflicts. In those cases I don't think there is much we can do except for fixing or re-writing the dependency's CMakeLists to support inclusion as a subdirectory. For now, you could create issues in the according repos explaining the error to make the library authors aware of the use-case. |
Ok, thanks, sounds like a plan! 😄 |
Yeah I agree that something like that would be great, however it's highly nontrivial as there are an infinite number of ways to structure a CMake project. Imo best we can currently do is to preach good project conventions that work well either installed or as a subdirectory. |
Hello! I've been using cpm to manage packages for my project and I adore the concept! Unfortunately I use some libraries with somewhat quirky CMake behaviors that CPM doesn't seem to like.☹️
gl3w - Has an OUTPUT custom command to execute a python script which builds a *.c file. This seems to only happen when building so
add_executable
complains that the file doesn't exist at configuration time.globjects & glbinding - This pair of libraries define targets with the same name, leading to a fatal CMake error.
Are there any possible workarounds?
Thanks
The text was updated successfully, but these errors were encountered: