NEVER change CMake code targeting OS a when working on OS b.
I’ve been doing cross-platform build systems work for more than a decade, and this may be the most important principle I’ve learned in that time. Still, I do it on a regular basis; I’ll be editing a CMake file in Windows — editing code targeted at Windows — and it will be ever so tempting to change that one little line of code targeted at Linux. I mean, we’re there already, right? Why not just take care of it now? We know the change works, right?
Yeah … right. Don’t do it.
Posted in CMake