https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ca1b2ada343a7ca2edd55…
commit ca1b2ada343a7ca2edd556f013ed55622318039d
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Sun Jan 3 03:46:12 2021 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Sun Jan 3 03:46:12 2021 +0300
[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 b96e88894a4d55f5e8b94430deeb0f086151b24f
---
sdk/cmake/msvc.cmake | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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}
$<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.