polarssl-no-test-suite.patch 830 B

1234567891011121314151617181920212223242526
  1. Add BUILD_TESTS option to disable test suite
  2. By default, PolarSSL builds a fairly extensive test suite to validate
  3. the library. In the context of Buildroot, building this test suite is
  4. not really useful, so we add a BUILD_TESTS to disable its build.
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. Index: polarssl-1.1.1/CMakeLists.txt
  7. ===================================================================
  8. --- polarssl-1.1.1.orig/CMakeLists.txt
  9. +++ polarssl-1.1.1/CMakeLists.txt
  10. @@ -27,9 +27,11 @@
  11. add_subdirectory(library)
  12. add_subdirectory(include)
  13. -if(CMAKE_COMPILER_IS_GNUCC)
  14. +option(BUILD_TESTS "Build tests." ON)
  15. +
  16. +if(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
  17. add_subdirectory(tests)
  18. -endif(CMAKE_COMPILER_IS_GNUCC)
  19. +endif(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
  20. add_subdirectory(programs)