Skip to content

Commit 84828af

Browse files
committed
Make warning on CMake's version conditional on Rust API being built or not
1 parent ee9dbf4 commit 84828af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ if(WITH_JBMC)
257257
endif()
258258

259259
option(WITH_RUST_API "Build with the CPROVER Rust API" OFF)
260-
if(${CMAKE_VERSION} VERSION_LESS "3.19.0")
260+
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")
262262
message("(The Rust build depends on CMake plugins with dependencies on CMake 3.19.0 and above)")
263263
else()

0 commit comments

Comments
 (0)