CMake: Increase minimum required LLVM version to 11

LLVM 11 is now preseent in all major stable Linux distributions.

PiperOrigin-RevId: 531204137
Change-Id: I6f20aea425915023ea6113c17ff5a038a74aa919
This commit is contained in:
Christian Blichmann 2023-05-11 08:04:13 -07:00 committed by Copybara-Service
parent bfa0186f72
commit a078043f8e

View File

@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Minimum supported: LLVM 7.0.1
# Minimum supported: LLVM 11.0.0
find_package(LLVM REQUIRED)
find_package(Clang REQUIRED)
if(LLVM_VERSION VERSION_LESS "7.0.1")
message(FATAL_ERROR "SAPI header generator needs LLVM 7.0.1 or newer")
if(LLVM_VERSION VERSION_LESS "11.0.0")
message(FATAL_ERROR "SAPI header generator needs LLVM 11 or newer")
endif()
add_library(sapi_generator