diff options
| author | Don <don.j.olmstead@gmail.com> | 2018-03-16 14:08:36 -0700 |
|---|---|---|
| committer | Don <don.j.olmstead@gmail.com> | 2018-03-16 14:08:36 -0700 |
| commit | aa60dd89f44b943a85df353b9f5be3521241a1b3 (patch) | |
| tree | 92e6d22da844928c7d87b64e34be2139f22614d7 | |
| parent | 639a6629ae4b2243d1d15670f90750c3200ff4bf (diff) | |
| download | portable-aa60dd89f44b943a85df353b9f5be3521241a1b3.tar.gz portable-aa60dd89f44b943a85df353b9f5be3521241a1b3.tar.bz2 portable-aa60dd89f44b943a85df353b9f5be3521241a1b3.zip | |
Conditionally build apps
Add an option to build or not build the apps directory.
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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}) | |||
| 28 | string(REGEX REPLACE "\\..*" "" TLS_MAJOR_VERSION ${TLS_VERSION}) | 28 | string(REGEX REPLACE "\\..*" "" TLS_MAJOR_VERSION ${TLS_VERSION}) |
| 29 | 29 | ||
| 30 | option(LIBRESSL_SKIP_INSTALL "Skip installation" ${LIBRESSL_SKIP_INSTALL}) | 30 | option(LIBRESSL_SKIP_INSTALL "Skip installation" ${LIBRESSL_SKIP_INSTALL}) |
| 31 | option(LIBRESSL_APPS "Build apps" ON) | ||
| 31 | option(ENABLE_ASM "Enable assembly" ON) | 32 | option(ENABLE_ASM "Enable assembly" ON) |
| 32 | option(ENABLE_EXTRATESTS "Enable extra tests that may be unreliable on some platforms" OFF) | 33 | option(ENABLE_EXTRATESTS "Enable extra tests that may be unreliable on some platforms" OFF) |
| 33 | option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF) | 34 | option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF) |
| @@ -307,7 +308,9 @@ add_definitions(-DSIZEOF_TIME_T=${SIZEOF_TIME_T}) | |||
| 307 | 308 | ||
| 308 | add_subdirectory(crypto) | 309 | add_subdirectory(crypto) |
| 309 | add_subdirectory(ssl) | 310 | add_subdirectory(ssl) |
| 310 | add_subdirectory(apps) | 311 | if(LIBRESSL_APPS) |
| 312 | add_subdirectory(apps) | ||
| 313 | endif() | ||
| 311 | add_subdirectory(tls) | 314 | add_subdirectory(tls) |
| 312 | add_subdirectory(include) | 315 | add_subdirectory(include) |
| 313 | if(NOT MSVC) | 316 | if(NOT MSVC) |
