put windows magic in cmake