sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
871 stars 297 forks source link

[cmake] Remove error in Findcxxopt #4554

Closed bakpaul closed 2 months ago

bakpaul commented 2 months ago

Remove error and send warning when cxxopt is found but version mismatch


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

olivier-roussel commented 2 months ago

I guess you want to avoid critical error on cmake and rather it continue by fetching cxxopts in case of version mismatch ?

bakpaul commented 2 months ago

Esatto ! Avoid having to uninstall the package...

olivier-roussel commented 2 months ago

Indeed sounds good !