The only toggle is to choose RelWithDebInfo as the cmake target (as opposed to Release or Debug).  Pretty straightforward.