diff --git a/sdk/cmake/msvc.cmake b/sdk/cmake/msvc.cmake index 1601805404a..ee6c343451d 100644 --- a/sdk/cmake/msvc.cmake +++ b/sdk/cmake/msvc.cmake @@ -320,9 +320,9 @@ function(generate_import_lib _libname _dllname _spec_file) add_custom_command( OUTPUT ${_libfile_tmp} COMMAND - LINK /LIB ∕NOLOGO /MACHINE:${WINARCH} + ${CMAKE_AR} /NOLOGO /MACHINE:${WINARCH} $ $ - ∕DEF:${_def_file} /OUT:${_libfile_tmp} ${_asm_stubs_file}.obj + /DEF:${_def_file} /OUT:${_libfile_tmp} ${_asm_stubs_file}.obj DEPENDS ${_asm_stubs_file}.obj ${_def_file}) # By giving the import lib as an object input, LIB extracts the relevant object files and make a new library.