From 0209a3633dc877a577af07d883eb5059e22f6a91 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 21 Jan 2020 23:05:27 +0100 Subject: [PATCH] cmake: do not check for g++ when FTDIPP is disabled Signed-off-by: Samuel Martin [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 --- CMakeLists.txt | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 ) -- 1.7.1