diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f3a9dd73..89d661a1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -361,7 +361,7 @@ find_package(FLAC REQUIRED) find_package(mpg123 REQUIRED) find_package(PNG REQUIRED) find_package(ZLIB REQUIRED) -find_library(LIBSERIALPORT_LIBRARIES serialport) +find_library(LIBSERIALPORT_LIBRARIES REQUIRED serialport) find_path(LIBSERIALPORT_INCLUDE_DIR libserialport.h) INCLUDE_DIRECTORIES(${SDL2IMAGE_INCLUDE_DIRS} ${LIBSERIALPORT_INCLUDE_DIR})