-
Notifications
You must be signed in to change notification settings - Fork 972
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
Renaming Conan packages #3400
Comments
Why? due to |
Yes, please clarify the package name and the filenames issues. |
Sorry, I was on mobile...
the package libpq/x.y.z@bincrafters/stable is now in Conan center and it
provides Postgresql C library as well.
However, the equivalent cmake module name is PostgreSQL.
So if I want to run `find_package(PostgreSQL)` and use our libpq package,
it won't work.
I see few options here:
- Provide FindPostgreSQL.cmake in libpq package
- Rename the libpq to postgresql
- Create a recipe called postgresql the points to libpq
I would like to know if the frogarians have some idea to deal with that.
Regards!
…On Mon, Aug 27, 2018, 4:39 AM James ***@***.***> wrote:
Yes, please clarify the package name and the filenames issues.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3400 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEpQHQt2pN7GztJEPl7HLdqOyd0nzxoHks5uU6IygaJpZM4WM4ff>
.
|
Why? The |
Sorry, I forgot to mention that I'm not able to change the CMakeLists.txt, I only see Now the full context, I'm trying to finish taocpp/postgres. I would like to avoid changing the cmake file. The taocpp-postgres.cmake#L9 includes PostgreSQL as cmake package. But if I use libpq/9.6.9@conan/stable by cmake_paths or cmake_find_packages, all paths are set using CONAN_libpq so it's not possible to find PostgreSQL. |
I see. If you cannot even patch the CMakeLists (replace_in_file), currently, it is not possible. a) Being able to receive parameters in the generators, for the b) I dedicated some time to a new model of the cmake generator/build_helper and apparently (very preliminary tests) it might be possible to automatically inject the needed code using a toolchain I think we should implement both |
Thanks for your advice! I really enjoyed the discussion. No problem about the features, but is good to know about it :) I could run replace_in_file, but is an workaround. I'll provide FindPostgreSQL.cmake directly from libpq package, overriding all libraries and headers path. I see as a dirty option, but the client will not suffer any change. |
I usually dislike providing a custom |
To help us debug your issue please explain:
Hi!
We just released libpq to provide support for PostgreSQL C library, however now we have a new problem...
When a project wants to include postgresql cmake file it looks for FindPostgreSQL.cmake file, but are providing Findlibpq.cmake. As you can see, we need to rename the file, or entry project.
Is there any idea how to fix this situation?
Regards!
The text was updated successfully, but these errors were encountered: