From bec9804c73acf74ba112c9eec4ce7ba97e140c89 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 20 Feb 2017 14:43:30 +0100 Subject: [PATCH] build: enable usign support Signed-off-by: Jo-Philipp Wich --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 206bc26..9d022e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ SET(VERSION "" CACHE STRING "Override version") OPTION(STATIC_UBOX "Statically link libubox" OFF) OPTION(BUILD_TESTS "Build test programs" ON) +OPTION(ENABLE_USIGN "Enable usign support" ON) IF(NOT HOST_CPU) SET(HOST_CPU "${CMAKE_HOST_SYSTEM_PROCESSOR}") @@ -39,6 +40,10 @@ ADD_DEFINITIONS(-Os -Wall --std=gnu99 -g3 -Wmissing-declarations -DVERSION="${VERSION}" ) +IF(ENABLE_USIGN) + ADD_DEFINITIONS(-DHAVE_USIGN) +ENDIF() + ADD_SUBDIRECTORY(libbb) ADD_SUBDIRECTORY(libopkg) ADD_SUBDIRECTORY(src) -- 2.25.1