Source debug information (`-g`) and warnings (`-W`) should be omitted when `CMAKE_BUILD_TYPE` is `release`. 

Likewise, when `CMAKE_BUILD_TYPE` is `release`, a different optimization option should be used (e.g. `-O2` or `-O3`).