Fix building unit tests without FTDIPP
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 24 Aug 2020 17:27:22 +0000 (19:27 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 24 Aug 2020 17:27:22 +0000 (19:27 +0200)
Needed to run the baudrate unit tests.

Probably another fallout from:

****************************
commit 0209a3633dc877a577af07d883eb5059e22f6a91

cmake: do not check for g++ when FTDIPP is disabled
****************************

CMakeLists.txt

index 3b0b87c..58f664a 100644 (file)
@@ -150,6 +150,7 @@ if ( EXAMPLES )
 endif ()
 add_subdirectory(packages)
 if ( BUILD_TESTS )
+  project(libftdi1 C CXX)
   add_subdirectory(test)
 endif ()