File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.5)
22
3+ if (NOT WIN32 )
4+ if (NOT DEFINED CMAKE_SYSTEM_PROCESSOR )
5+ execute_process (COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE SYS_ARCH)
6+ set (CMAKE_SYSTEM_PROCESSOR ${SYS_ARCH} CACHE STRING "System processor architecture" )
7+ endif ()
8+
9+ message (STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR} " )
10+
11+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64" )
12+ set (IS_ARM64 TRUE )
13+ else ()
14+ set (IS_ARM64 FALSE )
15+ endif ()
16+
17+ message (STATUS "Building for ARM64: ${IS_ARM64} " )
18+ endif ()
19+
320if (WIN32 )
421 #
522 # Configure vcpkg
Original file line number Diff line number Diff line change @@ -23,5 +23,9 @@ target_link_libraries (
2323 PRIVATE aduc::communication_abstraction aduc::logging aduc::retry_utils)
2424
2525if (ADUC_BUILD_UNIT_TESTS)
26- add_subdirectory (tests)
26+ if (${IS_ARM64} )
27+ message (STATUS "Skipping tests for utils/d2c_messaging because IS_ARM64 == ${IS_ARM64} ..." )
28+ else ()
29+ add_subdirectory (tests)
30+ endif ()
2731endif ()
You can’t perform that action at this time.
0 commit comments