Skip to content

Commit 8d5f238

Browse files
committed
[CMAKE]
- fix MSVC build svn path=/trunk/; revision=55777
1 parent 7c9159f commit 8d5f238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reactos/cmake/msvc.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ endfunction()
133133

134134
#define those for having real libraries
135135
set(CMAKE_IMPLIB_CREATE_STATIC_LIBRARY "LINK /LIB /NOLOGO <LINK_FLAGS> /OUT:<TARGET> <OBJECTS>")
136-
136+
set(CMAKE_STUB_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> /Fo<OBJECT> /c /Ta <SOURCE>")
137137
# Thanks MS for creating a stupid linker
138138
function(add_importlib_target _exports_file _implib_name)
139139

@@ -145,7 +145,7 @@ function(add_importlib_target _exports_file _implib_name)
145145
COMMAND native-spec2def --ms --kill-at -a=${SPEC2DEF_ARCH} --implib -n=${_implib_name} -d=${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_exp.def -l=${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_stubs.asm ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
146146
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} native-spec2def)
147147
# be clear about the language
148-
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_stubs.asm PROPERTIES LANGUAGE "ASM")
148+
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_stubs.asm PROPERTIES LANGUAGE "STUB_ASM")
149149

150150
# add our library
151151
# NOTE: as stub file and def file are generated in one pass, depending on one is like depending on the other

0 commit comments

Comments
 (0)