Skip to content

Commit 293c56c

Browse files
authored
Update FindQextserialport.cmake for Qt5
Find default library name used with Qt5 and checks qt subdir for header
1 parent b19aef3 commit 293c56c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/FindQextserialport.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ FIND_PATH(QEXTSERIALPORT_INCLUDE_DIR NAMES qextserialport.h PATHS
1818
/usr/local/include
1919
"$ENV{LIB_DIR}/include"
2020
"$ENV{INCLUDE}"
21-
PATH_SUFFIXES QtExtSerialPort
21+
PATH_SUFFIXES QtExtSerialPort qt/QtExtSerialPort
2222
)
2323

24-
FIND_LIBRARY(QEXTSERIALPORT_LIBRARY NAMES qextserialport-1.2 PATHS
24+
FIND_LIBRARY(QEXTSERIALPORT_LIBRARY NAMES Qt5ExtSerialPort PATHS
2525
/usr/lib
2626
/usr/local/lib
2727
"$ENV{LIB_DIR}/lib"

0 commit comments

Comments
 (0)