Build from source for release

Hi all, I am trying to build OpenCV from source to enable optimzations.

I check in the build directory

cat CMakeCache.txt | grep CMAKE_BUILD_TYPE
CMAKE_BUILD_TYPE:STRING=Debug
//STRINGS property for variable: CMAKE_BUILD_TYPE
CMAKE_BUILD_TYPE-STRINGS:INTERNAL=Debug;Release

does it mean I have the right configuration?

Thanks a lot in advance