Skip to content

Commit 37ce8dc

Browse files
committed
try
1 parent d01c655 commit 37ce8dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmake/GenerateConfig.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
if(CMAKE_CROSSCOMPILING AND NOT DEFINED AB_NATIVE_ARCH_NAME)
2-
message(FATAL_ERROR "AB_NATIVE_ARCH_NAME must be defined when cross-compiling")
1+
if(CMAKE_CROSSCOMPILING)
2+
if(NOT DEFINED AB_NATIVE_ARCH_NAME)
3+
message(FATAL_ERROR "AB_NATIVE_ARCH_NAME must be defined when cross-compiling")
4+
endif()
5+
message(INFO "Autobuild native architecture name: ${AB_NATIVE_ARCH_NAME}")
36
else()
47
execute_process(
58
COMMAND dpkg --print-architecture

0 commit comments

Comments
 (0)