You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That will soon be a problem - and with cmake 3.19 the user will get
CMake Deprecation Warning at CMakeLists.txt:19 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
I suggest to update e.g. to cmake_minimum_required(VERSION 3.15)
since 3.14 has "issues" and later releases are available in general.
#3788 demonstrates that 2.8.12 already doesn't work. I see two possibilities here:
Update the minimum cmake version to 3.15. This makes it clear that the 2.8.12 doesn't actually work, but we more explicitly lose support for these targets.
Work around the target_sources issue. If this can be solved, it would continue to be able to support platforms with cmake 2.8.12.
I suggest if we decided to do 2, CI should include a build done with cmake 2.8.12, otherwise, it will be fairly easy to keep introducing changes that break with this version of cmake.
Our CI currently mostly runs Ubuntu 16.04, which has CMake 3.5.1, so switching to CMake 3.15 as the minimum supported version would be a pain for us maintainers as well as for users of the library. We aim to maintain compatibility with popular long-time support distributions, and for RHEL/CentOS 7 this means CMake 2.8.12.2 until June 2024.
@gilles-peskine-arm I would then encourage you to update the CI chain e.g. to Ubuntu 20.04.
CMake 3.14 and earlier have odd errors - especially for Windows. I foresee that you will - at some point - before June 2024 have a conflict beween long term support and supported Cmake. I will happily give a beer in Copenhagen if I am wrong :)
Activity
peter-toft-greve commentedon Oct 20, 2020
I have suggested #3802
peter-toft-greve commentedon Oct 21, 2020
and if you are into cmake issues join the band in #3790 which is also a problem :)
d3zd3z commentedon Nov 2, 2020
#3788 demonstrates that 2.8.12 already doesn't work. I see two possibilities here:
target_sourcesissue. If this can be solved, it would continue to be able to support platforms with cmake 2.8.12.I suggest if we decided to do 2, CI should include a build done with cmake 2.8.12, otherwise, it will be fairly easy to keep introducing changes that break with this version of cmake.
gilles-peskine-arm commentedon Nov 2, 2020
Our CI currently mostly runs Ubuntu 16.04, which has CMake 3.5.1, so switching to CMake 3.15 as the minimum supported version would be a pain for us maintainers as well as for users of the library. We aim to maintain compatibility with popular long-time support distributions, and for RHEL/CentOS 7 this means CMake 2.8.12.2 until June 2024.
peter-toft-greve commentedon Nov 2, 2020
@gilles-peskine-arm I would then encourage you to update the CI chain e.g. to Ubuntu 20.04.
CMake 3.14 and earlier have odd errors - especially for Windows. I foresee that you will - at some point - before June 2024 have a conflict beween long term support and supported Cmake. I will happily give a beer in Copenhagen if I am wrong :)
cmake: Avoid using target_properties for old cmake
cmake: Avoid using target_properties for old cmake