Fix clang bug in CMakeLists.txt

Courtesy of hasufell