Skip to content

Commit dae22a5

Browse files
authored
Under Windows, Rust detection is broken and leads to a CMake error. (#651)
1 parent e356ab9 commit dae22a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmarks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ else(ZURI_FOUND)
253253
message(STATUS "Zuri not found! Please install to include in benchmark.")
254254
endif(ZURI_FOUND)
255255

256-
256+
if(NOT WIN32)
257257
# We want the check whether Rust is available before trying to build a crate.
258258
CPMAddPackage(
259259
NAME corrosion
@@ -263,7 +263,7 @@ CPMAddPackage(
263263
OPTIONS "Rust_FIND_QUIETLY OFF"
264264
)
265265
include("${corrosion_SOURCE_DIR}/cmake/FindRust.cmake")
266-
266+
endif()
267267

268268
if(RUST_FOUND)
269269
message(STATUS "Rust found: " ${Rust_VERSION} )

0 commit comments

Comments
 (0)