From ac94d92c96b8eb503ef969afcd6504842ce28642 Mon Sep 17 00:00:00 2001
From: anta999 <antarctic@linuxpc>
Date: Sat, 27 Jul 2019 09:32:39 +0400
Subject: [PATCH] XKCP added and fixed makefile

---
 CMakeLists.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94ec618..9fb6895 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,14 @@ set(CMAKE_ASM_FLAGS "-std=c11 -Wall -Wextra -fPIC -fno-pie -no-pie")
 
 if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
 
+  # Check whether we're on a 32-bit or 64-bit system
+  if(CMAKE_SIZEOF_VOID_P EQUAL "8")
+    set(DEFAULT_BUILD_64 ON)
+  else()
+    set(DEFAULT_BUILD_64 OFF)
+  endif()
+  option(BUILD_64 "Build for 64-bit? 'OFF' builds for 32-bit." ${DEFAULT_BUILD_64})
+
   add_definitions ("-DDAP_SERVER")
   add_definitions ("-DNODE_NETNAME=\"kelvin\"")
 
-- 
GitLab