Skip to content

Commit 594cf70

Browse files
authored
Debug CMakeLists.txt
1 parent 31b8cea commit 594cf70

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,12 @@ if(MSVC)
497497
if(MSVC_VERSION LESS 1914)
498498
set(MSVC_EXPORTLIST ${MSVC_EXPORTLIST} ??3@YAXPAX0@Z ??_V@YAXPAX0@Z)
499499
endif()
500-
message(STATUS "CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}")
500+
include(CheckCXXSymbolExists)
501+
check_symbol_exists(__aarch64__ "" IS_ARM64)
502+
503+
if(IS_ARM64)
504+
message(STATUS "Compile-time check: Detected ARM64 (__aarch64__)")
505+
endif()
501506
if(MSVC_VERSION GREATER_EQUAL 1936 AND NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "ARM" OR CMAKE_SYSTEM_PROCESSOR MATCHES "AARCH64"))
502507
set(MSVC_EXPORTLIST ${MSVC_EXPORTLIST}
503508
__std_find_trivial_1

0 commit comments

Comments
 (0)