Example of cmake not doing what i think it should do