News for hackers. Stuff that matters.
Re:Allowing CMake functions to return(value) by moonbug on Tuesday August 18, 2020 @03:50PM (#24203484)
spoiler: they're all crap.
Re:Allowing CMake functions to return(value) by nickez on Tuesday August 18, 2020 @04:56PM (#24204242)
And worse, they all achieve the same goal in different ways...
Re:Allowing CMake functions to return(value) by MaxBarraclough on Wednesday August 19, 2020 @05:06AM (#24208530)
A great point. There should a single standard and well-documented way to do things. The documentation should be official, the user should not be expected to trawl the blogosphere and piece together the knowledge they need. There should be plenty of complete examples.

Ideally the official Find... packages should not make use of deprecated CMake functionality, they should be actively maintained to follow the current best-practices, so that they can serve as examples of the right way to do it.

As I rambled about in my longer comment yesterday, this kind of work shouldn't require you to think, it should just be an exercise in applying boring, samey, dependable boilerplate.