Skip to content

Commit f8b1e6c

Browse files
committed
Document CMake version requirement and fail if it's not satisfied
1 parent 84828af commit f8b1e6c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ endif()
259259
option(WITH_RUST_API "Build with the CPROVER Rust API" OFF)
260260
if(${CMAKE_VERSION} VERSION_LESS "3.19.0" AND WITH_RUST_API)
261261
message("Unable to build the Rust API without version CMake 3.19.0")
262-
message("(The Rust build depends on CMake plugins with dependencies on CMake 3.19.0 and above)")
262+
message(FATAL_ERROR "(The Rust build depends on CMake plugins with dependencies on CMake 3.19.0 and above)")
263263
else()
264264
if(WITH_RUST_API)
265265
include(FetchContent)

COMPILING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,8 @@ CBMC, you need two things:
570570

571571
- Rust/Cargo, instructions the installation of which can be found [here](https://www.rust-lang.org/tools/install), and
572572
- CMake (the Rust API doesn't support being built with `Make` yet)
573+
- Version `3.19.0`+ is required for the build, because of a dependency on CMake modules
574+
that need the higher version themselves.
573575

574576
Provided these two are available, you can perform a CBMC build *including*
575577
the Rust API by passing in the option `WITH_RUST_API` to `CMake` like this:

0 commit comments

Comments
 (0)