polarssl-0001-no-test-suite.patch 1020 B

123456789101112131415161718192021222324252627
  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. [Gustavo: update for 1.2.11]
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  8. diff -Nura polarssl-1.2.11.orig/CMakeLists.txt polarssl-1.2.11/CMakeLists.txt
  9. --- polarssl-1.2.11.orig/CMakeLists.txt 2014-07-11 17:14:43.414651327 -0300
  10. +++ polarssl-1.2.11/CMakeLists.txt 2014-07-11 17:23:00.573498626 -0300
  11. @@ -49,9 +49,11 @@
  12. add_subdirectory(library)
  13. add_subdirectory(include)
  14. -if(CMAKE_COMPILER_IS_GNUCC)
  15. +option(BUILD_TESTS "Build tests." ON)
  16. +
  17. +if(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
  18. add_subdirectory(tests)
  19. -endif(CMAKE_COMPILER_IS_GNUCC)
  20. +endif(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
  21. if(CMAKE_COMPILER_IS_CLANG)
  22. add_subdirectory(tests)
  23. endif(CMAKE_COMPILER_IS_CLANG)