polarssl-no-programs.patch 880 B

1234567891011121314151617181920212223242526
  1. Add the BUILD_PROGRAMS option to disable programs build
  2. By default, PolarSSL builds and installs a large set of companions
  3. programs, which in some cases are not useful. This patch adds the
  4. BUILD_PROGRAMS option which allows to disable the build and
  5. installation of such programs when not needed.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Index: polarssl-1.1.1/CMakeLists.txt
  8. ===================================================================
  9. --- polarssl-1.1.1.orig/CMakeLists.txt
  10. +++ polarssl-1.1.1/CMakeLists.txt
  11. @@ -33,7 +33,11 @@
  12. add_subdirectory(tests)
  13. endif(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
  14. -add_subdirectory(programs)
  15. +option(BUILD_PROGRAMS "Build programs." ON)
  16. +
  17. +if(BUILD_PROGRAMS)
  18. + add_subdirectory(programs)
  19. +endif(BUILD_PROGRAMS)
  20. ADD_CUSTOM_TARGET(apidoc
  21. COMMAND doxygen doxygen/polarssl.doxyfile