Do not set CMAKE_BUILD_TYPE if it is not defined