Skip to content

abstract toolchain file tip#19602

Merged
memsharded merged 1 commit intoconan-io:develop2from
memsharded:fix/toolchain_file_tip
Feb 12, 2026
Merged

abstract toolchain file tip#19602
memsharded merged 1 commit intoconan-io:develop2from
memsharded:fix/toolchain_file_tip

Conversation

@memsharded
Copy link
Member

Changelog: Fix: Improve the -DCMAKE_TOOLCHAIN_FILE tip in CMakeToolchain generator to abstract it to a <output_folder>
Docs: Omit

Close #19022

@memsharded memsharded added this to the 2.26.0 milestone Feb 11, 2026
# https://github.com/conan-io/conan/pull/12034#issuecomment-1253776285
vars_tip = " ".join([f"-D{k}={_format_val(v)}" for k, v in cache_variables.items()])
tc_tip = f"-DCMAKE_TOOLCHAIN_FILE=<output_folder>/{toolchain_file} " \
if "CMAKE_TOOLCHAIN_FILE" not in vars_tip else ""
Copy link
Member

Choose a reason for hiding this comment

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

but vars_tip would always be ["-DCMAKE_TOOLCHAIN....] so the CMAKE_TOOLCHAIN_FILE literal would never be contained no?

@memsharded memsharded merged commit c2b0718 into conan-io:develop2 Feb 12, 2026
16 checks passed
@memsharded memsharded deleted the fix/toolchain_file_tip branch February 12, 2026 00:42
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.

[CMakeToolchain] hint about CMAKE_TOOLCHAIN_FILE value is incorrect

2 participants