Where

When

July 2017
M T W T F S S
« Jun    
 12
3456789
10111213141516
17181920212223
24252627282930
31  

jb_logo_6_small

logo
  • Blog
  • CMake
  • The Cardinal Rule of CMake generated build system work

The Cardinal Rule of CMake generated build system work

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.