Fix typo CMAKE_MAJOR_VERSION -> CMAKE_VERSION.