mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[CMAKE:MSVC] Refine ASM16 ml.exe path selection. Addendum to commit 60733590
.
This commit is contained in:
parent
8ed7d4b341
commit
ea3e4bb4cb
1 changed files with 8 additions and 4 deletions
|
@ -414,10 +414,14 @@ set(PSEH_LIB "pseh")
|
||||||
# Use a full path for the x86 version of ml when using x64 VS.
|
# Use a full path for the x86 version of ml when using x64 VS.
|
||||||
# It's not a problem when using the DDK/WDK because, in x64 mode,
|
# It's not a problem when using the DDK/WDK because, in x64 mode,
|
||||||
# both the x86 and x64 versions of ml are available.
|
# both the x86 and x64 versions of ml are available.
|
||||||
if((ARCH STREQUAL "amd64") AND (DEFINED ENV{VCToolsInstallDir}))
|
if(ARCH STREQUAL "amd64")
|
||||||
set(CMAKE_ASM16_COMPILER $ENV{VCToolsInstallDir}/bin/HostX86/x86/ml.exe)
|
if((MSVC_VERSION LESS_EQUAL 1900) AND (DEFINED ENV{VCINSTALLDIR}))
|
||||||
elseif((ARCH STREQUAL "amd64") AND (DEFINED ENV{VCINSTALLDIR}))
|
set(CMAKE_ASM16_COMPILER $ENV{VCINSTALLDIR}/bin/ml.exe)
|
||||||
set(CMAKE_ASM16_COMPILER $ENV{VCINSTALLDIR}/bin/ml.exe)
|
elseif(DEFINED ENV{VCToolsInstallDir})
|
||||||
|
set(CMAKE_ASM16_COMPILER $ENV{VCToolsInstallDir}/bin/HostX86/x86/ml.exe)
|
||||||
|
else()
|
||||||
|
set(CMAKE_ASM16_COMPILER ml.exe)
|
||||||
|
endif()
|
||||||
elseif(ARCH STREQUAL "arm")
|
elseif(ARCH STREQUAL "arm")
|
||||||
set(CMAKE_ASM16_COMPILER armasm.exe)
|
set(CMAKE_ASM16_COMPILER armasm.exe)
|
||||||
elseif(ARCH STREQUAL "arm64")
|
elseif(ARCH STREQUAL "arm64")
|
||||||
|
|
Loading…
Reference in a new issue