Make BUILD TYPE is Release however --version says its DEBUG

I use CMAKE_BUILD_TYPE=Release and when its all done and installed --version shows Build Type as Debug. when I’m building it I can see the subcommand cd /home/udm/neovim/.deps && /usr/bin/cmake -E touch .third-party && cd build && cmake -G 'Ninja' -DCMAKE_BUILD_TYPE=Release and at end of build process there is other output that displays its a Release build type too.

How in the world is it building a Debug version?

well I’m not exactly sure why my initial build was DEBUG, but rebuilding a Release version works as long as I do make distclean. rm -rf build is not enough, .deps folder also needs to be deleted.