Configures cmake environment