Skip to content
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

[feature] CMake generators: include 'build_modules' after creating the packages #7352

Closed
jgsogo opened this issue Jul 14, 2020 · 1 comment
Closed

Comments

@jgsogo
Copy link
Contributor

jgsogo commented Jul 14, 2020

Duplicated: #7261


This is a last-mile problem for CMake. Some packages provide CMake modules with some customization that doesn't fit the general conventions and we cannot keep adding more complexity to the cpp_info model:

If we really want to provide transparent integration, this last-mile details cannot be supported in the cpp_info, but they can be added to the build_modules, those files are included for all the CMake generates and they can populate other variables based on the value of existing ones and they could create custom targets (or alias)...

To be able to implement this feature, some work/research to be done:

  • include build_modules after creating the targets for cmake_find_package[_multi] generators.
  • build_modules need to know the generator used, so they know if targets are available or not (depending on the generator, or even depending on the TARGET argument to conan_basic_setup).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant