mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[CMAKE]
Fix compilation with VS x64 svn path=/trunk/; revision=53456
This commit is contained in:
parent
79b52fa59a
commit
823c30ef1f
1 changed files with 8 additions and 1 deletions
|
@ -225,6 +225,13 @@ file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/importlibs)
|
|||
#pseh workaround
|
||||
set(PSEH_LIB "pseh")
|
||||
|
||||
# Use full path for ml when using x64 VS
|
||||
if((ARCH MATCHES amd64) AND ($ENV{VCINSTALLDIR}))
|
||||
set(CMAKE_ASM16_COMPILER $ENV{VCINSTALLDIR}/bin/ml.exe)
|
||||
else()
|
||||
set(CMAKE_ASM16_COMPILER ml.exe)
|
||||
endif()
|
||||
|
||||
function(CreateBootSectorTarget2 _target_name _asm_file _binary_file _base_address)
|
||||
|
||||
set(_object_file ${_binary_file}.obj)
|
||||
|
@ -237,7 +244,7 @@ function(CreateBootSectorTarget2 _target_name _asm_file _binary_file _base_addre
|
|||
|
||||
add_custom_command(
|
||||
OUTPUT ${_object_file}
|
||||
COMMAND ml /nologo /Cp /Fo${_object_file} /c /Ta ${_temp_file}
|
||||
COMMAND ${CMAKE_ASM16_COMPILER} /nologo /Cp /Fo${_object_file} /c /Ta ${_temp_file}
|
||||
DEPENDS ${_temp_file})
|
||||
|
||||
add_custom_command(
|
||||
|
|
Loading…
Reference in a new issue