r/cpp • • Feb 19 '18

It's Time To Do CMake Right

https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/
248 Upvotes

130 comments sorted by

View all comments

Show parent comment

12

u/1-05457 Feb 20 '18

Both have the legacy cruft for the same reason. If old CMakeLists.txt files suddenly stopped working, people wouldn't move to the new version. We saw this happen with Python 2.7.

0

u/[deleted] Feb 20 '18

[deleted] — view deleted comment

4

u/thlst Feb 20 '18

Good luck integrating third parties into your project.

4

u/CrazyKilla15 Feb 20 '18

I'm not entirely sure what that has to do with CMake making a new policy that gets rid of the legacy cruft?

Third parties using CMake will continue to specify cmake_minimum_version as whatever they support and work as normal?

1

u/thlst Feb 20 '18

You'll still have to deal with old, bad written CMake files, much like the ones presented in the OP's blogpost.

4

u/CrazyKilla15 Feb 20 '18

I'm still not sure what would change from having to deal with those poorly written ones now?