Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6c47879

Browse files
jashooweshaggard
authored andcommitted
Updates the explicit location for armasm
1 parent 88e33df commit 6c47879

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ if (WIN32)
5252
endif()
5353

5454
# Explicitly specify the assembler to be used for Arm32 compile
55-
file(TO_CMAKE_PATH "$ENV{VCINSTALLDIR}\\bin\\x86_arm\\armasm.exe" CMAKE_ASM_COMPILER)
56-
55+
if($ENV{__VSVersion} STREQUAL "vs2015")
56+
file(TO_CMAKE_PATH "$ENV{VCINSTALLDIR}\\bin\\x86_arm\\armasm.exe" CMAKE_ASM_COMPILER)
57+
else()
58+
file(TO_CMAKE_PATH "$ENV{VCToolsInstallDir}\\bin\\HostX86\\arm\\armasm.exe" CMAKE_ASM_COMPILER)
59+
endif()
60+
5761
set(CMAKE_ASM_MASM_COMPILER ${CMAKE_ASM_COMPILER})
5862
message("CMAKE_ASM_MASM_COMPILER explicitly set to: ${CMAKE_ASM_MASM_COMPILER}")
5963

0 commit comments

Comments
 (0)