61
General discussions / Re: Why is SFML still using CMake 2.8 ?
« on: December 23, 2017, 09:53:33 pm »Many Linux distros only ship CMake 2.x as such we can't really raise the minimum required version and being "older" doesn't necessarily mean, being worse off.I'm curious to know which ones still stick with CMake 2. Even Debian which (from what I know) takes time to adopt newer packages provides CMake 3.7 through apt-get as of Debian 9.
However this doesn't mean, we potentially couldn't support newer CMake features via a conditional check. Checkout the open GitHub issues (#758, #937) and feel free to discuss potential adjustments before creating a pull request, if you're interested in contributing.Indeed it could be conditional even if I prefer a simple unique version to do things I've had a look at these threads, they go even further: define SFML targets AND remove the need for the FindSFML.cmake file (but add the need for the config file). I don't know yet this config file approach so will study it a bit. Especially I don't have seen it used widely so I wonder if this is the way to go.
For a few seconds I wondered if it was sarcasticQuoteSo is it "just" a matter of doing itThis. "Modern CMake" is so much better than what we have.