Fixed bug in cmake files