hplip: needs dynamic library
[buildroot-gz.git] / package / libftdi1 / 0003-cmake-do-not-check-for-g-when-FTDIPP-is-disabled.patch
blobbe0913de4a37ad10de6e5e19c2264e72b55c1a01
1 From c215d5ecd985b57700e817920d0e99112b4a571b Mon Sep 17 00:00:00 2001
2 From: Samuel Martin <s.martin49@gmail.com>
3 Date: Sun, 25 Jan 2015 13:35:24 +0100
4 Subject: [PATCH] cmake: do not check for g++ when FTDIPP is disabled
6 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
7 ---
8 CMakeLists.txt | 6 ++++--
9 ftdipp/CMakeLists.txt | 1 +
10 2 files changed, 5 insertions(+), 2 deletions(-)
12 diff --git a/CMakeLists.txt b/CMakeLists.txt
13 index 0ba0b08..e880211 100644
14 --- a/CMakeLists.txt
15 +++ b/CMakeLists.txt
16 @@ -1,5 +1,5 @@
17 # Project
18 -project(libftdi1)
19 +project(libftdi1 C)
20 set(MAJOR_VERSION 1)
21 set(MINOR_VERSION 2)
22 set(PACKAGE libftdi1)
23 @@ -145,7 +145,9 @@ else(DOCUMENTATION AND DOXYGEN_FOUND)
24 endif(DOCUMENTATION AND DOXYGEN_FOUND)
26 add_subdirectory(src)
27 -add_subdirectory(ftdipp)
28 +if(FTDIPP)
29 + add_subdirectory(ftdipp)
30 +endif()
31 add_subdirectory(python)
32 add_subdirectory(ftdi_eeprom)
33 add_subdirectory(examples)
34 diff --git a/ftdipp/CMakeLists.txt b/ftdipp/CMakeLists.txt
35 index 27e7884..2d080f4 100644
36 --- a/ftdipp/CMakeLists.txt
37 +++ b/ftdipp/CMakeLists.txt
38 @@ -1,4 +1,5 @@
39 # Check
40 +project(libftdipp1 C CXX)
41 set(FTDI_BUILD_CPP False PARENT_SCOPE)
43 option ( FTDIPP "Build C++ binding library libftdi1++" ON )
44 --
45 2.2.2