Update the compatibility of from SameMinorVersion to SameMajorVersion in the main CMakeLists.txt file