[vcpkg_execute_build_process] Add warning message when memory or hard disk space is insufficient (#16633)

* [vcpkg_execute_build_process] Add warning message when memory or hard disk space is insufficient

* Update scripts/cmake/vcpkg_execute_build_process.cmake
This commit is contained in:
Jack·Boos·Yu 2021-03-17 02:52:25 +08:00 committed by GitHub
parent 37df512335
commit 38b9e63dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,8 @@ function(vcpkg_execute_build_process)
break()
endif()
endwhile()
elseif(out_contents MATCHES "fatal error: ld terminated with signal 9 [Killed]")
message(WARNING "ld was terminated with signal 9 [killed], please ensure your system has sufficient hard disk space and memory.")
endif()
if(error_code)