Skip to content

Layer conan profile addons on top of base profile - #631

Merged
nikobockerman merged 1 commit into
mainfrom
ensure-conan-profile-addons-add-to-cmake-generated-base-profile
Jul 25, 2026
Merged

Layer conan profile addons on top of base profile#631
nikobockerman merged 1 commit into
mainfrom
ensure-conan-profile-addons-add-to-cmake-generated-base-profile

Conversation

@nikobockerman

Copy link
Copy Markdown
Owner

CONAN_HOST_PROFILE is an ordered list where later profiles override earlier ones. auto-cmake is the base host profile generated from the CMake toolchain, and the clang/libstdc++ profile files are addons meant to extend it. They were listed before auto-cmake, so the generated base could override the addon settings. Put auto-cmake first so the custom addon profiles apply on top of it as intended.

CONAN_HOST_PROFILE is an ordered list where later profiles override
earlier ones. auto-cmake is the base host profile generated from the
CMake toolchain, and the clang/libstdc++ profile files are addons meant
to extend it. They were listed before auto-cmake, so the generated base
could override the addon settings. Put auto-cmake first so the custom
addon profiles apply on top of it as intended.
Copilot AI review requested due to automatic review settings July 25, 2026 17:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the intended precedence of Conan host profiles in CMake user presets by ensuring the generated auto-cmake base profile is applied first, allowing subsequent “addon” profiles to correctly override it.

Changes:

  • Reordered CONAN_HOST_PROFILE lists so auto-cmake is first for the clang+libc++ preset.
  • Reordered CONAN_HOST_PROFILE lists so auto-cmake is first for the clang+gcc-libstd++ preset.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nikobockerman
nikobockerman merged commit 1071f8d into main Jul 25, 2026
97 of 100 checks passed
@nikobockerman
nikobockerman deleted the ensure-conan-profile-addons-add-to-cmake-generated-base-profile branch July 25, 2026 18:21
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.

2 participants