-DBUILD_TESTING=OFF: This switch is used to prevent building test programs and libraries that are of no use to an end user.