From: Fabrice Fontaine Date: Tue, 21 Jan 2020 22:05:27 +0000 (+0100) Subject: cmake: do not check for g++ when FTDIPP is disabled X-Git-Tag: v1.5rc1~13 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=0209a3633dc877a577af07d883eb5059e22f6a91;p=libftdi 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 --- 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 )