blob: 9b14d4baf3f801e22b39519b879e6e4a5bbaf4bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff --git a/cmake/variables.cmake b/cmake/variables.cmake
index b3d7ff4..feb3dac 100644
--- a/cmake/variables.cmake
+++ b/cmake/variables.cmake
@@ -59,10 +59,9 @@ elseif (APPLE)
set(DESKTOP_APP_USE_GLIBC_WRAPS OFF)
else()
set(LINUX 1)
- execute_process(COMMAND uname -m OUTPUT_VARIABLE machine_uname)
- if (NOT ${machine_uname} MATCHES "x86_64" AND NOT ${machine_uname} MATCHES "aarch64")
- set(build_linux32 1)
- endif()
+ if(CMAKE_SIZEOF_VOID_P EQUAL 4)
+ set(build_linux32 1)
+ endif()
if (DESKTOP_APP_SPECIAL_TARGET STREQUAL "linux")
if (build_linux32)
report_bad_special_target()
|