The correct spelling would have been CMAKE_TESTING_ON but that defaults to BUILD_TESTING anyway. Reported by: portmt scan