VERSION_LESS_EQUAL is only available to CMake 3.7+. This adds additional logic to check that CMAKE_MINOR_VERSION is at least 7. Fixes #1489