From 345316db650fefb5f3c5812843dcefb687ccf416 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 26 Mar 2014 13:27:51 +0100 Subject: [PATCH] Made building of programs optional in CMake --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4699a712b..2d3097c0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,7 @@ endif(CMAKE_BUILD_TYPE STREQUAL "Coverage") option(USE_PKCS11_HELPER_LIBRARY "Build PolarSSL with the pkcs11-helper library." OFF) option(ENABLE_ZLIB_SUPPORT "Build PolarSSL with zlib library." OFF) +option(ENABLE_PROGRAMS "Build PolarSSL programs." ON) if(LIB_INSTALL_DIR) else() @@ -55,7 +56,9 @@ if(CMAKE_COMPILER_IS_CLANG) add_subdirectory(tests) endif(CMAKE_COMPILER_IS_CLANG) -add_subdirectory(programs) +if(ENABLE_PROGRAMS) + add_subdirectory(programs) +endif() ADD_CUSTOM_TARGET(apidoc COMMAND doxygen doxygen/polarssl.doxyfile