Set CMAKE_BUILD_TYPE=RelWithDebugInfo if it's not set manually.