mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
chore: fail build on non-make generators (#12690)
At the moment, the build relies on make and will fail with other cmake generators. This explicit check (as suggested by @LecrisUT in https://github.com/leanprover/lean4/pull/12577#discussion_r2832295132) should help prevent confusion like in #12575.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
|
||||
if(NOT CMAKE_GENERATOR MATCHES "Makefiles")
|
||||
message(FATAL_ERROR "Only makefile generators are supported")
|
||||
endif()
|
||||
|
||||
option(USE_MIMALLOC "use mimalloc" ON)
|
||||
|
||||
# store all variables passed on the command line into CL_ARGS so we can pass them to the stage builds
|
||||
|
||||
Reference in New Issue
Block a user