Please, remove mandatory -DCMAKE_BUILD_TYPE and default it to Release inside your cmake files if it is not defined by the user.