libftdi Archives

Subject: [PATCH 1/1] cmake: do not check for g++ when FTDIPP is disabled

From: Fabrice Fontaine <fontaine.fabrice@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Fabrice Fontaine <fontaine.fabrice@xxxxxxxxx>, Samuel Martin <s.martin49@xxxxxxxxx>
Date: Wed, 2 Oct 2019 17:28:33 +0200
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>
---
 CMakeLists.txt        | 2 +-
 ftdipp/CMakeLists.txt | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71857d0..1e26ed4 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)
diff --git a/ftdipp/CMakeLists.txt b/ftdipp/CMakeLists.txt
index 2983d3d..37abbe3 100644
--- a/ftdipp/CMakeLists.txt
+++ b/ftdipp/CMakeLists.txt
@@ -1,5 +1,7 @@
 # vim: ts=2:sw=2:sts=2
 
+project(libftdipp1 C CXX)
+
 # Targets
 set(cpp_sources ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.cpp CACHE INTERNAL "List of 
cpp sources" )
 set(cpp_headers ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.hpp CACHE INTERNAL "List of 
cpp headers" )
-- 
2.23.0


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • [PATCH 1/1] cmake: do not check for g++ when FTDIPP is disabled, Fabrice Fontaine <=