diff --git a/CMakeLists.txt b/CMakeLists.txt index cd1ba9d3f8af0be9f556019e6bd4528487b8ee1b..132f9ff578367616c70d06ed336314b8a0f6886b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -632,6 +632,8 @@ set_target_properties(zig PROPERTIES target_link_libraries(zig compiler "${LIBUSERLAND}") if(MSVC) target_link_libraries(zig ntdll.lib) +elseif(MINGW) + target_link_libraries(zig ntdll) endif() add_dependencies(zig zig_build_libuserland) install(TARGETS zig DESTINATION bin)