libgtk3: remove non-existent configure options
[buildroot-gz.git] / package / polarssl / 0002-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch
blobd241ae264b2c36e9aa1f69f24b25863b3152ec9b
1 From a14028b0878c1ba27f7c7a6d0962874d0f7f3801 Mon Sep 17 00:00:00 2001
2 From: Samuel Martin <s.martin49@gmail.com>
3 Date: Sun, 31 Aug 2014 11:54:37 +0200
4 Subject: [PATCH 3/3] cmake: use the standard CMake flag to drive the shared
5 object build
7 If BUILD_SHARED_LIBS is set and not USE_SHARED_POLARSSL_LIBRARY, then
8 drive USE_SHARED_POLARSSL_LIBRARY with the BUILD_SHARED_LIBS value.
10 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
11 ---
12 library/CMakeLists.txt | 14 ++++++++++++--
13 1 file changed, 12 insertions(+), 2 deletions(-)
15 diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
16 index 27bd2e0..2ae0aba 100644
17 --- a/library/CMakeLists.txt
18 +++ b/library/CMakeLists.txt
19 @@ -1,5 +1,15 @@
20 -option(USE_STATIC_POLARSSL_LIBRARY "Build PolarSSL static library." ON)
21 -option(USE_SHARED_POLARSSL_LIBRARY "Build PolarSSL shared library." OFF)
22 +# Use the standard CMake flag to drive the shared object build.
23 +if(DEFINED BUILD_SHARED_LIBS AND NOT DEFINED USE_STATIC_POLARSSL_LIBRARY AND NOT DEFINED USE_SHARED_POLARSSL_LIBRARY)
24 + set(USE_STATIC_POLARSSL_LIBRARY ON)
25 + if(BUILD_SHARED_LIBS)
26 + set(USE_SHARED_POLARSSL_LIBRARY ON)
27 + else()
28 + set(USE_SHARED_POLARSSL_LIBRARY OFF)
29 + endif()
30 +else()
31 + option(USE_STATIC_POLARSSL_LIBRARY "Build PolarSSL static library." ON)
32 + option(USE_SHARED_POLARSSL_LIBRARY "Build PolarSSL shared library." OFF)
33 +endif()
35 set(src
36 aes.c
37 --
38 2.1.0