aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Modules/HandleFtdiSupport.cmake
blob: b4ad685b39a77683e2023f081f56638f6e9caf4b (plain) (blame)
1
2
3
4
5
6
7
8
if(FTDISUPPORT)
	message(STATUS "building with libftdi support")
	pkg_config_library(LIBFTDI libftdi QUIET)
	if (NOT LIBFTDI_FOUND)
		pkg_config_library(LIBFTDI libftdi1 REQUIRED)
	endif()
	add_definitions(-DSERIAL_FTDI)
endif()