libgtk3: remove non-existent configure options
[buildroot-gz.git] / package / polarssl / 0001-no-test-suite.patch
blob4c8552a948e4b214dc0a52092c03940e19de8e9d
1 Add BUILD_TESTS option to disable test suite
3 By default, PolarSSL builds a fairly extensive test suite to validate
4 the library. In the context of Buildroot, building this test suite is
5 not really useful, so we add a BUILD_TESTS to disable its build.
7 [Gustavo: update for 1.2.11]
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
11 diff -Nura polarssl-1.2.11.orig/CMakeLists.txt polarssl-1.2.11/CMakeLists.txt
12 --- polarssl-1.2.11.orig/CMakeLists.txt 2014-07-11 17:14:43.414651327 -0300
13 +++ polarssl-1.2.11/CMakeLists.txt 2014-07-11 17:23:00.573498626 -0300
14 @@ -49,9 +49,11 @@
15 add_subdirectory(library)
16 add_subdirectory(include)
18 -if(CMAKE_COMPILER_IS_GNUCC)
19 +option(BUILD_TESTS "Build tests." ON)
21 +if(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
22 add_subdirectory(tests)
23 -endif(CMAKE_COMPILER_IS_GNUCC)
24 +endif(CMAKE_COMPILER_IS_GNUCC AND BUILD_TESTS)
25 if(CMAKE_COMPILER_IS_CLANG)
26 add_subdirectory(tests)
27 endif(CMAKE_COMPILER_IS_CLANG)