Skip to content

Instantly share code, notes, and snippets.

@quanticle
Created May 16, 2019 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quanticle/8cb883d5eca9d09de8a0f553cf7dc611 to your computer and use it in GitHub Desktop.
Save quanticle/8cb883d5eca9d09de8a0f553cf7dc611 to your computer and use it in GitHub Desktop.
Cmake rant
> im going to get blackout drunk this weekend and drop in a generic makefile for this project
> when you invoke cmake it spends like a full minute resolving dependencies
> because it literally scans the source
> cmake encourages you to do things like 'include "myheader.h"' instead of giving the full path to myheader.h
> which is dumb for 2 reasons
> 1: when i look at that line i have no idea where that file is unless i go looking for it
> 2: you literally cant have to files by the same name even if theyre 20 directories apart
> cmake is ~~smart~~ and will find the file for u
> to save you a few keystrokes the literal one time you ever write that include line
> and all the syntax is overly complex and over engineered
> instead of `USE_TESTING=1` you write `option (USE_TESTING "USE_TESTING" ON)`
> and gets 10x worse for anything harder than just setting a fucking variable
> i could rant about cmake all day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment