Skip to content

[CMake] Fix cmake error on already defined metis target#5880

Merged
fredroy merged 1 commit intosofa-framework:masterfrom
olivier-roussel:fix-metis-cmake-module
Feb 1, 2026
Merged

[CMake] Fix cmake error on already defined metis target#5880
fredroy merged 1 commit intosofa-framework:masterfrom
olivier-roussel:fix-metis-cmake-module

Conversation

@olivier-roussel
Copy link
Copy Markdown
Contributor

When cmake re-configuring an existing build, the configure was failing at the step of Sofa.Metis because the alias target metis::metis was already defined. Only tested this error with Pixi, but I think it should be fixed globally. Also, I could only reproduce the error locally on Windows, not on Linux, and I don't know why yet.


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@olivier-roussel olivier-roussel added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request labels Jan 22, 2026
@hugtalbot hugtalbot added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Jan 30, 2026
@fredroy fredroy force-pushed the fix-metis-cmake-module branch from dadbafa to e9e9349 Compare February 1, 2026 23:27
@fredroy fredroy merged commit 33890e9 into sofa-framework:master Feb 1, 2026
12 of 13 checks passed
@hugtalbot hugtalbot added this to the v26.06 milestone Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: fix Fix a bug pr: status ready Approved a pull-request, ready to be squashed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants