diff --git a/cmake/Corrosion.cmake b/cmake/Corrosion.cmake index 3ad5bc17..f5132ead 100644 --- a/cmake/Corrosion.cmake +++ b/cmake/Corrosion.cmake @@ -355,7 +355,7 @@ function(_corrosion_add_library_target) set(is_windows TRUE) if(Rust_CARGO_TARGET_ENV STREQUAL "msvc") set(is_windows_msvc TRUE) - elseif(Rust_CARGO_TARGET_ENV STREQUAL "gnu") + elseif(Rust_CARGO_TARGET_ENV STREQUAL "gnu" OR Rust_CARGO_TARGET_ENV STREQUAL "gnullvm") set(is_windows_gnu TRUE) endif() elseif(Rust_CARGO_TARGET_OS STREQUAL "darwin")