Skip to content

Commit

Permalink
Only build fuzzer with CMake if 3.26 is available (#1119)
Browse files Browse the repository at this point in the history
`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)
  • Loading branch information
WheretIB authored Dec 2, 2023
1 parent c755875 commit 6413ea8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 6413ea8

Please sign in to comment.