- This topic has 4 replies, 3 voices, and was last updated 8 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Sofa (version Github) CMake V2.x backward compatibility
Tagged: 64_bits, GCC, Linux_ubuntu, SOFA_other
Hi,
I just updated my version of Sofa from github and it says I need CMake V3.X :
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.1 or higher is required.
Can I ask why is it mandatory to have this version? Isn’t it possible to have a backward compatibility?
I’m using the default CMake from my Ubuntu which is still 2.8.12.
It is not a lot of work for me to install a CMake V3.1 in parallel but maybe it could be a bit more problematic on specific Server architecture.
Erik
BTW, nice to see a picture of Sofa on CMake home website!
Great job guys!
Hi Erik,
Indeed, and the reason is that SOFA is now C++11 mandatory.
To do so, we had to go to CMake 3.x because using the CMAKE_CXX_STANDARD variable (only available since 3.x) was the cleanest and most easy-to-maintain solution. Check the “c++11” branch in the repo for more details.
About backward compatibility, I’m not sure this is planned. All this work was done to make SOFA move forward (C++11 is not young anymore) and open it to new developments/improvements.
Anyway, we can help you if you have any trouble staying up-to-date π
Cheers,
Guillaume.
Hi,
are you saying I’m an old dev that doesn’t use C++11 ? π
Ok I understand the need. I assume all unix servers will be C++11 compatible as well.
Thanks for the explanation. You can resolve that topic.
Erik
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.