cmake has some pitfalls