Update build script for CM-12.0