Skip to content

[POC] Preparing multi-file CMakeConfigDeps (Part 1)#20036

Merged
memsharded merged 8 commits into
conan-io:develop2from
franramirez688:frm/poc_refactor_cmakedeps
Jun 16, 2026
Merged

[POC] Preparing multi-file CMakeConfigDeps (Part 1)#20036
memsharded merged 8 commits into
conan-io:develop2from
franramirez688:frm/poc_refactor_cmakedeps

Conversation

@franramirez688

@franramirez688 franramirez688 commented May 29, 2026

Copy link
Copy Markdown
Contributor

Changelog: omit
Docs: omit

Pure refactor before moving this forward: #19681

Comment thread conan/tools/cmake/cmakeconfigdeps/targets.py Outdated
Comment thread conan/tools/cmake/cmakeconfigdeps/config_version.py Outdated
Comment thread conan/tools/cmake/cmakeconfigdeps/config.py Outdated
@franramirez688 franramirez688 force-pushed the frm/poc_refactor_cmakedeps branch from b9d43de to eeb2111 Compare June 15, 2026 18:07
@franramirez688 franramirez688 force-pushed the frm/poc_refactor_cmakedeps branch from eeb2111 to 636fe27 Compare June 15, 2026 18:08
@franramirez688 franramirez688 marked this pull request as ready for review June 16, 2026 12:53
@franramirez688 franramirez688 changed the title [POC] Preparing multi-file CMakeConfigDeps [POC] Preparing multi-file CMakeConfigDeps (Part 1) Jun 16, 2026
Comment thread test/functional/toolchains/cmake/cmakeconfigdeps/test_cmakeconfigdeps_new.py Outdated

@memsharded memsharded left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ready, great 👍

self._cmakedeps = cmakedeps
self._require = require
self._conanfile = conanfile
def __init__(self, filename, reference, consumer_conanfile, full_cpp_info,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can even abstract more in the future, like consumer_conanfile -> path_relativizator or the "folder" that it needs to relativize the paths. That way it is completely explicit that it is not getting any other information from that conanfile.

Can be done in the future, not necessary to do it now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

Comment thread test/functional/toolchains/cmake/cmakeconfigdeps/test_cmakeconfigdeps_new.py Outdated
…figdeps_new.py

Co-authored-by: James <memsharded@gmail.com>
@memsharded memsharded added this to the 2.30.0 milestone Jun 16, 2026
@memsharded memsharded self-assigned this Jun 16, 2026
@memsharded memsharded merged commit 9e4e4a7 into conan-io:develop2 Jun 16, 2026
18 checks passed
@franramirez688 franramirez688 deleted the frm/poc_refactor_cmakedeps branch June 16, 2026 14:43
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

Successfully merging this pull request may close these issues.

3 participants