From aa60dd89f44b943a85df353b9f5be3521241a1b3 Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 16 Mar 2018 14:08:36 -0700 Subject: Conditionally build apps Add an option to build or not build the apps directory. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df92e6a..7e13ed7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,7 @@ string(REPLACE ":" "." TLS_VERSION ${TLS_VERSION}) string(REGEX REPLACE "\\..*" "" TLS_MAJOR_VERSION ${TLS_VERSION}) option(LIBRESSL_SKIP_INSTALL "Skip installation" ${LIBRESSL_SKIP_INSTALL}) +option(LIBRESSL_APPS "Build apps" ON) option(ENABLE_ASM "Enable assembly" ON) option(ENABLE_EXTRATESTS "Enable extra tests that may be unreliable on some platforms" OFF) option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF) @@ -307,7 +308,9 @@ add_definitions(-DSIZEOF_TIME_T=${SIZEOF_TIME_T}) add_subdirectory(crypto) add_subdirectory(ssl) -add_subdirectory(apps) +if(LIBRESSL_APPS) + add_subdirectory(apps) +endif() add_subdirectory(tls) add_subdirectory(include) if(NOT MSVC) -- cgit v1.2.3-55-g6feb