Signed-off-by: Samuel Martin <s.martin49@xxxxxxxxx>
[Retrieved (and slightly updated) from:
https://git.buildroot.net/buildroot/tree/package/libftdi1/0003-cmake-do-not-check-for-g-when-FTDIPP-is-disabled.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@xxxxxxxxx>
---
Changes v1 -> v2:
- Move project statement from ftdipp/CMakeLists.txt to CMakeLists.txt.
This will avoid a build failure while building C++ examples.
CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71857d0..6655caf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
# Project
-project(libftdi1)
+project(libftdi1 C)
set(MAJOR_VERSION 1)
set(MINOR_VERSION 4)
set(PACKAGE libftdi1)
@@ -136,6 +136,7 @@ endif ()
add_subdirectory(src)
if ( FTDIPP )
+ project(libftdipp1 C CXX)
add_subdirectory(ftdipp)
endif ()
if ( PYTHON_BINDINGS )
--
2.24.1
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|