[cmake] add support for local/ environment