build: enable usign support
authorJo-Philipp Wich <jo@mein.io>
Mon, 20 Feb 2017 13:43:30 +0000 (14:43 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 20 Feb 2017 13:43:30 +0000 (14:43 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
CMakeLists.txt

index 206bc261d3b276a6bb22c1ed1b8894448f8a09ea..9d022e0c6bc1d8599854dec6879ca82aa195d428 100644 (file)
@@ -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)