Make sure the CMAKE_BUILD_TYPE is considered if present.
Merge topic 'autorcc-depends' into next

13125e4d Make sure the CMAKE_BUILD_TYPE is considered if present.