Fix clang bug in CMakeLists.txt

Courtesy of hasufell
Merge remote-tracking branch 'flare-engine/master'