Enable release build setting in cmake to avoid manually changing configuration files