[CMAKE] Replace DIVISION_SLASH unicode character with SOLIDUS

This fixes the build on some machines. In addition, replace
the hardcoded "LINK /LIB" with ${CMAKE_AR}

Addendum to b96e88894a
This commit is contained in:
Victor Perevertkin 2021-01-03 03:46:12 +03:00
parent 0abff65a55
commit ca1b2ada34
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -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}
$<TARGET_PROPERTY:${_libname},STATIC_LIBRARY_FLAGS> $<TARGET_PROPERTY:${_libname},STATIC_LIBRARY_OPTIONS>
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.