No longer use CMAKE_BUILD_TYPE to allow configuration choice at build time.

Merged Ghislain MARY requested to merge fix/do-not-use-CMAKE_BUILD_TYPE into master

Merge request reports