From 6413ea8574534e6fa3d08f7dbd0ffe2d5f2625d2 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Sat, 2 Dec 2023 23:04:25 +0200 Subject: [PATCH] Only build fuzzer with CMake if 3.26 is available (#1119) `cmake_minimum_required` is a blocking check and raising required minimal CMake version only for the fuzzer is not good for the users (<3.19 was supported before, but not sure which exact one) --- fuzz/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fuzz/CMakeLists.txt b/fuzz/CMakeLists.txt index 13d1a2a4c..c18fbba53 100644 --- a/fuzz/CMakeLists.txt +++ b/fuzz/CMakeLists.txt @@ -1,5 +1,8 @@ # This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details -cmake_minimum_required(VERSION 3.26) +if(${CMAKE_VERSION} VERSION_LESS "3.26") + message(WARNING "Building the Luau fuzzer requires Clang version 3.26 of higher.") + return() +endif() include(FetchContent)